diff options
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index f82a5b1806c..46294ad732a 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -3343,8 +3343,8 @@ foldShiftIntoShiftInAnotherHandOfAndInICmp(ICmpInst &I, const SimplifyQuery SQ,    }    // Can we fold (XShAmt+YShAmt) ? -  Value *NewShAmt = SimplifyBinOp(Instruction::BinaryOps::Add, XShAmt, YShAmt, -                                  SQ.getWithInstruction(&I)); +  Value *NewShAmt = SimplifyAddInst(XShAmt, YShAmt, /*IsNSW=*/false, +                                    /*IsNUW=*/false, SQ.getWithInstruction(&I));    if (!NewShAmt)      return nullptr;    // Is the new shift amount smaller than the bit width?  | 

