Lines Matching refs:BitsToClear
1025 static bool canEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear, in canEvaluateZExtd() argument
1027 BitsToClear = 0; in canEvaluateZExtd()
1046 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI) || in canEvaluateZExtd()
1050 if (BitsToClear == 0 && Tmp == 0) in canEvaluateZExtd()
1060 APInt::getHighBitsSet(VSize, BitsToClear), in canEvaluateZExtd()
1065 BitsToClear = 0; in canEvaluateZExtd()
1078 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in canEvaluateZExtd()
1081 BitsToClear = ShiftAmt < BitsToClear ? BitsToClear - ShiftAmt : 0; in canEvaluateZExtd()
1091 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in canEvaluateZExtd()
1093 BitsToClear += Amt->getZExtValue(); in canEvaluateZExtd()
1094 if (BitsToClear > V->getType()->getScalarSizeInBits()) in canEvaluateZExtd()
1095 BitsToClear = V->getType()->getScalarSizeInBits(); in canEvaluateZExtd()
1103 !canEvaluateZExtd(I->getOperand(2), Ty, BitsToClear, IC, CxtI) || in canEvaluateZExtd()
1106 Tmp != BitsToClear) in canEvaluateZExtd()
1115 if (!canEvaluateZExtd(PN->getIncomingValue(0), Ty, BitsToClear, IC, CxtI)) in canEvaluateZExtd()
1121 Tmp != BitsToClear) in canEvaluateZExtd()
1157 unsigned BitsToClear; in visitZExt() local
1159 canEvaluateZExtd(Src, DestTy, BitsToClear, *this, &Zext)) { in visitZExt()
1160 assert(BitsToClear <= SrcTy->getScalarSizeInBits() && in visitZExt()
1176 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits() - BitsToClear; in visitZExt()