diff options
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp index 1f497ec9212..bf10e0b5bb5 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp @@ -444,8 +444,6 @@ bool RegisterBankInfo::InstructionMapping::verify( assert(MI.getParent() && MI.getParent()->getParent() && "MI must be connected to a MachineFunction"); const MachineFunction &MF = *MI.getParent()->getParent(); - const TargetRegisterInfo &TRI = *MF.getSubtarget().getRegisterInfo(); - const MachineRegisterInfo &MRI = MF.getRegInfo(); for (unsigned Idx = 0; Idx < NumOperands; ++Idx) { const MachineOperand &MO = MI.getOperand(Idx); @@ -461,7 +459,8 @@ bool RegisterBankInfo::InstructionMapping::verify( continue; // Register size in bits. // This size must match what the mapping expects. - assert(MOMapping.verify(getSizeInBits(Reg, MRI, TRI)) && + assert(MOMapping.verify(getSizeInBits( + Reg, MF.getRegInfo(), *MF.getSubtarget().getRegisterInfo())) && "Value mapping is invalid"); } return true; |