Lines Matching refs:ShiftedC
2326 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant() local
2327 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2331 APInt ShiftedC = C.ashr(*ShiftAmt); in foldICmpShlConstant() local
2332 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2340 APInt ShiftedC = (C - 1).ashr(*ShiftAmt) + 1; in foldICmpShlConstant() local
2341 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2351 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant() local
2352 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2356 APInt ShiftedC = C.lshr(*ShiftAmt); in foldICmpShlConstant() local
2357 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2365 APInt ShiftedC = (C - 1).lshr(*ShiftAmt) + 1; in foldICmpShlConstant() local
2366 return new ICmpInst(Pred, X, ConstantInt::get(ShType, ShiftedC)); in foldICmpShlConstant()
2522 APInt ShiftedC = (C - 1).shl(ShAmtVal) + 1; in foldICmpShrConstant() local
2523 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2529 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant() local
2530 if (ShiftedC.ashr(ShAmtVal) == C) in foldICmpShrConstant()
2531 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2535 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2537 (ShiftedC + 1).ashr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2538 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2544 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2545 if ((ShiftedC + 1).ashr(ShAmtVal) == (C + 1) || in foldICmpShrConstant()
2547 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2568 APInt ShiftedC = C.shl(ShAmtVal); in foldICmpShrConstant() local
2569 if (ShiftedC.lshr(ShAmtVal) == C) in foldICmpShrConstant()
2570 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()
2574 APInt ShiftedC = (C + 1).shl(ShAmtVal) - 1; in foldICmpShrConstant() local
2575 if ((ShiftedC + 1).lshr(ShAmtVal) == (C + 1)) in foldICmpShrConstant()
2576 return new ICmpInst(Pred, X, ConstantInt::get(ShrTy, ShiftedC)); in foldICmpShrConstant()