Lines Matching refs:SrcBits
1417 SrcBits = SrcTy->getScalarSizeInBits(); in foldICmpTruncConstant() local
1423 return new ICmpInst(Pred, X, ConstantInt::get(SrcTy, C.sext(SrcBits))); in foldICmpTruncConstant()
1425 return new ICmpInst(Pred, X, ConstantInt::get(SrcTy, C.zext(SrcBits))); in foldICmpTruncConstant()
1455 if (!SrcTy->isVectorTy() && shouldChangeType(DstBits, SrcBits)) { in foldICmpTruncConstant()
1457 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
1459 Constant *WideC = ConstantInt::get(SrcTy, C.zext(SrcBits)); in foldICmpTruncConstant()
1468 if ((Known.Zero | Known.One).countl_one() >= SrcBits - DstBits) { in foldICmpTruncConstant()
1470 APInt NewRHS = C.zext(SrcBits); in foldICmpTruncConstant()
1471 NewRHS |= Known.One & APInt::getHighBitsSet(SrcBits, SrcBits - DstBits); in foldICmpTruncConstant()
1484 DstBits == SrcBits - ShAmtC->getZExtValue()) { in foldICmpTruncConstant()
5841 unsigned SrcBits = X->getType()->getScalarSizeInBits(); in foldICmpWithTrunc() local
5845 Constant *MaskC = ConstantInt::get(X->getType(), C->zext(SrcBits)); in foldICmpWithTrunc()
5853 Constant *MaskC = ConstantInt::get(X->getType(), (*C + 1).zext(SrcBits)); in foldICmpWithTrunc()
5861 unsigned MaxRet = SrcBits; in foldICmpWithTrunc()
5872 foldICmpIntrinsicWithConstant(ICmp, II, C->zext(SrcBits))) in foldICmpWithTrunc()