[llvm] [X86] Create special case for (a-b) - (a<b) -> sbb a, b (PR #161388)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 08:06:44 PDT 2025


================
@@ -52369,16 +52369,25 @@ static SDValue combineAddOrSubToADCOrSBB(bool IsSub, const SDLoc &DL, EVT VT,
     // Do not flip "e > c", where "c" is a constant, because Cmp instruction
     // cannot take an immediate as its first operand.
     //
-    if (EFLAGS.getOpcode() == X86ISD::SUB && EFLAGS.getNode()->hasOneUse() &&
----------------
AZero13 wrote:

Done!

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


More information about the llvm-commits mailing list