[llvm] [TargetLowering] Change subtraction to do (LHS < RHS) XOR (RESULT < 0) (PR #150872)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 03:27:43 PDT 2025


================
@@ -11447,13 +11447,25 @@ void TargetLowering::expandSADDSUBO(
   // For a subtraction, the result should be less than one of the operands
   // (LHS) if and only if the other operand (RHS) is (non-zero) positive,
   // otherwise there will be overflow.
----------------
jayfoad wrote:

Remove the old comment.

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


More information about the llvm-commits mailing list