Lines Matching refs:ShAmtVal
2228 unsigned ShAmtVal = ShiftAmt->getLimitedValue(TypeBits); in foldICmpShrConstant() local
2229 if (ShAmtVal >= TypeBits || ShAmtVal == 0) in foldICmpShrConstant()
2243 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant()
2244 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant()
2249 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant()
2250 if (!C.isMaxSignedValue() && !(C + 1).shl(ShAmtVal).isMinSignedValue() && in foldICmpShrConstant()
2251 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2258 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant()
2259 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2264 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant()
2265 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2278 assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) || in foldICmpShrConstant()
2279 (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) && in foldICmpShrConstant()
2285 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()
2290 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in foldICmpShrConstant()
2293 return new ICmpInst(Pred, And, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()