[llvm] [X86][CodeGen] Support flags copy lowering for CCMP/CTEST (PR #91849)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 07:00:52 PDT 2024


================
@@ -970,3 +977,29 @@ void X86FlagsCopyLoweringPass::rewriteSetCC(MachineBasicBlock &TestMBB,
 
   SetCCI.eraseFromParent();
 }
+
+void X86FlagsCopyLoweringPass::rewriteCCMP(MachineBasicBlock &TestMBB,
----------------
KanRobert wrote:

Most of the `rewrite*` functions can be merged together, including `rewriteCMov`. I will do it after this PR.

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


More information about the llvm-commits mailing list