[llvm] [InstCombine] Simplification for (-a * b) / (a * b). (PR #71768)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 07:37:55 PST 2023


================
@@ -1230,6 +1230,10 @@ static Value *simplifySDivInst(Value *Op0, Value *Op1, bool IsExact,
   // If two operands are negated and no signed overflow, return -1.
   if (isKnownNegation(Op0, Op1, /*NeedNSW=*/true))
     return Constant::getAllOnesValue(Op0->getType());
+  Value *X, *Y;
----------------
Z572 wrote:

created https://github.com/llvm/llvm-project/pull/72127

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


More information about the llvm-commits mailing list