[llvm] [AArch64] Fold CSET + BR_CC into a conditional branch (PR #207398)
Gaƫtan Bossu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 04:36:19 PDT 2026
================
@@ -11725,6 +11725,24 @@ SDValue AArch64TargetLowering::LowerBR_CC(SDValue Op, SelectionDAG &DAG) const {
Overflow);
}
+ // Fold CSET + BR_CC to a conditional branch (rather than keeping the CSET
+ // and emitting a TB[N]Z below).
+ {
+ using namespace llvm::SDPatternMatch;
+ SDValue Flags;
+ uint64_t InvCC;
----------------
gbossu wrote:
What does `Inv` stand for? That reads like "inverted", but we only invert the condition code when the branch condition is `SETNE`.
https://github.com/llvm/llvm-project/pull/207398
More information about the llvm-commits
mailing list