[llvm] [X86] Avoid useless DomTree in flags copy lowering (PR #97628)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 06:40:47 PDT 2024
================
@@ -688,7 +707,7 @@ bool X86FlagsCopyLoweringPass::runOnMachineFunction(MachineFunction &MF) {
}
#endif
- return true;
+ return !Copies.empty();
----------------
phoebewang wrote:
Shouldn't we always return `true` with checking `MI.getOperand(0).getReg() == X86::EFLAGS`?
https://github.com/llvm/llvm-project/pull/97628
More information about the llvm-commits
mailing list