InstCombe: Infer nsw for multiplies
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineAndOrXor.cpp
index 6a4e721db462061b01537c4bd280cd144979d791..a5dd89cc4af387a8b50b8cdb497ecd055f72c605 100644 (file)
@@ -886,8 +886,7 @@ Value *InstCombiner::simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1,
 
   // This simplification is only valid if the upper range is not negative.
   bool IsNegative, IsNotNegative;
-  ComputeSignBit(RangeEnd, IsNotNegative, IsNegative, DL, 0, AT,
-                 Cmp1, DT);
+  ComputeSignBit(RangeEnd, IsNotNegative, IsNegative, /*Depth=*/0, Cmp1);
   if (!IsNotNegative)
     return nullptr;