[llvm] [NFC][AArch64] Add getNonStrictBranchCondition TII hook (PR #190850)
Nashe Mncube via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 06:24:15 PDT 2026
================
@@ -371,7 +347,9 @@ AArch64ConditionOptimizerImpl::getAdjustedCmpInfo(MachineInstr *CmpMI,
Opc = getComplementOpc(Opc);
}
- return {NewImm, Opc, getAdjustedCmp(Cmp)};
+ int RelaxedCC = TII->getNonStrictBranchCondition((int)Cmp);
+ assert(RelaxedCC != -1 && "Expected a strict condition code");
----------------
nasherm wrote:
What happens if assertions aren't enabled i.e. in release builds?
https://github.com/llvm/llvm-project/pull/190850
More information about the llvm-commits
mailing list