[llvm] [NFC][AArch64] Add getRelaxedBranchCondition TII hook (PR #190850)

Hussam Alhassan via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 04:14:51 PDT 2026


================
@@ -309,30 +309,6 @@ static int getComplementOpc(int Opc) {
   }
 }
 
-// Changes form of comparison inclusive <-> exclusive.
-static AArch64CC::CondCode getAdjustedCmp(AArch64CC::CondCode Cmp) {
----------------
hussam-alhassan wrote:

I'm currently working on abstracting away some of the platform details in this `condopt` pass. The optimisation it performs ("Change two cmps and their conditional consumers to match CC/imm, enabling CSE") is in theory platform agnostic, so we could use it for e.g. `Arm` as well. Though I'm happy for any feedback if there's a better approach

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


More information about the llvm-commits mailing list