[llvm] [AArch64] Support MI and PL (PR #150314)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 22:58:49 PDT 2025


================
@@ -11503,7 +11504,7 @@ SDValue AArch64TargetLowering::LowerSELECT_CC(
       assert (CTVal && CFVal && "Expected constant operands for CSNEG.");
       // Use a CSINV to transform "a == C ? 1 : -1" to "a == C ? a : -1" to
       // avoid materializing C.
-      AArch64CC::CondCode AArch64CC = changeIntCCToAArch64CC(CC);
+      AArch64CC::CondCode AArch64CC = changeIntCCToAArch64CC(CC, RHS);
----------------
davemgreen wrote:

Same here, it can only be 1?

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


More information about the llvm-commits mailing list