Skip to content

Commit 13539c2

Browse files
committed
[RISCV][GISEl] Simplify GISelPredicateCode for binop_with_non_imm12. NFC
MRI is already available where this is instantiated.
1 parent 15f87bc commit 13539c2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZb.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ class binop_with_non_imm12<SDPatternOperator binop>
188188
let PredicateCodeUsesOperands = 1;
189189
let GISelPredicateCode = [{
190190
const MachineOperand &ImmOp = *Operands[1];
191-
const MachineFunction &MF = *MI.getParent()->getParent();
192-
const MachineRegisterInfo &MRI = MF.getRegInfo();
193191

194192
if (ImmOp.isReg() && ImmOp.getReg())
195193
if (auto Val = getIConstantVRegValWithLookThrough(ImmOp.getReg(), MRI)) {

0 commit comments

Comments
 (0)