[PATCH] D101970: [X86FixupLEAs] Transform the sequence LEA/SUB to SUB/SUB

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 10:18:05 PDT 2021


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86FixupLEAs.cpp:437
+        // register is live.
+        MachineBasicBlock::iterator NextI = std::next(CurInst);
+        if (MBB.computeRegisterLiveness(TRI, X86::EFLAGS, NextI) !=
----------------
Why can't we just check the Dead flag on the EFLAGS def of the ALU op?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101970/new/

https://reviews.llvm.org/D101970



More information about the llvm-commits mailing list