Lines Matching refs:ShAmtVal
2310 unsigned ShAmtVal = ShiftAmtC->getLimitedValue(TypeBits); in foldICmpShrConstant() local
2311 if (ShAmtVal >= TypeBits || ShAmtVal == 0) in foldICmpShrConstant()
2325 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant()
2326 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant()
2331 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant()
2332 if (!C.isMaxSignedValue() && !(C + 1).shl(ShAmtVal).isMinSignedValue() && in foldICmpShrConstant()
2333 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2340 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant()
2341 if ((ShiftedC + 1).ashr(ShAmtVal) == (C + 1) || in foldICmpShrConstant()
2342 (C + 1).shl(ShAmtVal).isMinSignedValue()) in foldICmpShrConstant()
2350 if (C.getBitWidth() > 2 && C.getNumSignBits() <= ShAmtVal) { in foldICmpShrConstant()
2364 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant()
2365 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2370 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant()
2371 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2384 assert(((IsAShr && C.shl(ShAmtVal).ashr(ShAmtVal) == C) || in foldICmpShrConstant()
2385 (!IsAShr && C.shl(ShAmtVal).lshr(ShAmtVal) == C)) && in foldICmpShrConstant()
2391 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()
2397 ConstantInt::get(ShrTy, (C + 1).shl(ShAmtVal))); in foldICmpShrConstant()
2400 ConstantInt::get(ShrTy, (C + 1).shl(ShAmtVal) - 1)); in foldICmpShrConstant()
2406 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in foldICmpShrConstant()
2409 return new ICmpInst(Pred, And, ConstantInt::get(ShrTy, C << ShAmtVal)); in foldICmpShrConstant()