[llvm] [X86] Avoid useless DomTree in flags copy lowering (PR #97628)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 06:53:47 PDT 2024


================
@@ -688,7 +707,7 @@ bool X86FlagsCopyLoweringPass::runOnMachineFunction(MachineFunction &MF) {
       }
 #endif
 
-  return true;
+  return !Copies.empty();
----------------
aengelke wrote:

Good catch, this was just a left-over from a previous optimization attempt.

https://github.com/llvm/llvm-project/pull/97628


More information about the llvm-commits mailing list