Lines Matching refs:ShiftedC

2266       APInt ShiftedC = C.ashr(*ShiftAmt);  in foldICmpShlConstant()  local
2267 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2271 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant() local
2272 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2280 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant() local
2281 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2291 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant() local
2292 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2296 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant() local
2297 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2305 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant() local
2306 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2438 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant() local
2439 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant()
2440 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2444 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2446 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2447 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2453 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2454 if ((ShiftedC + 1).ashr(ShAmtVal) == (C + 1) || in foldICmpShrConstant()
2456 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2477 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant() local
2478 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2479 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2483 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2484 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2485 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()