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 3119e570440..61acad04f32 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -1285,7 +1285,7 @@ Instruction *InstCombiner::OptAndOp(Instruction *Op,          Constant *AllOne = ConstantIntegral::getAllOnesValue(AndRHS->getType());          Constant *ShrMask = ConstantExpr::getUShr(AllOne, OpRHS);          Constant *CI = ConstantExpr::getAnd(AndRHS, ShrMask); -        if (CI == ShrMask) {          // Masking out bits shifted in. +        if (CI == AndRHS) {          // Masking out bits shifted in.            // Make the argument unsigned.            Value *ShVal = Op->getOperand(0);            ShVal = InsertCastBefore(ShVal, | 

