Minor cleanup related to my latest scheduler changes.
[oota-llvm.git] / lib / Transforms / InstCombine / InstCombineShifts.cpp
index e52f2013fe50a5650d99845d006a4b46a53cd899..a0c5ef5338f68e054715ad84d3c43e0630f8c9c4 100644 (file)
@@ -170,7 +170,7 @@ static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift,
     if (CI->getZExtValue() > NumBits) {
       unsigned LowBits = CI->getZExtValue() - NumBits;
       if (MaskedValueIsZero(I->getOperand(0),
-                          APInt::getLowBitsSet(TypeWidth, LowBits) << NumBits))
+                          APInt::getLowBitsSet(TypeWidth, NumBits) << LowBits))
         return true;
     }