[PATCH] D101970: [X86FixupLEAs] Transform the sequence LEA/SUB to SUB/SUB
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 27 11:04:17 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/X86/X86InstrInfo.cpp:2707
+ // Check if Reg1 comes from LEA in the same MBB.
+ if (MachineOperand *Op = MRI.getOneDef(Reg1)) {
+ MachineInstr *Inst = Op->getParent();
----------------
I think you might be able to use getUniqueVRegDef which will return the MachineInstr directly
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101970/new/
https://reviews.llvm.org/D101970
More information about the llvm-commits
mailing list