diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 8dc8659648f..170b47694af 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -1336,7 +1336,7 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask,      if (ConstantInt *Rem = dyn_cast<ConstantInt>(I->getOperand(1))) {        APInt RA = Rem->getValue().abs();        if (RA.isPowerOf2()) { -        if (DemandedMask.ule(RA))    // srem won't affect demanded bits +        if (DemandedMask.ult(RA))    // srem won't affect demanded bits            return I->getOperand(0);          APInt LowBits = RA - 1; | 

