Lines Matching refs:BitWidth

445   unsigned BitWidth = Ty->getScalarSizeInBits();  in commonShiftTransforms()  local
454 AddC->isNegative() && (-*AddC).ult(BitWidth)) { in commonShiftTransforms()
501 if (match(Op1, m_Or(m_Value(), m_SpecificInt(BitWidth - 1)))) in commonShiftTransforms()
502 return replaceOperand(I, 1, ConstantInt::get(Ty, BitWidth - 1)); in commonShiftTransforms()
966 unsigned BitWidth = KnownCnt.getBitWidth(); in setShiftFlags() local
969 uint64_t MaxCnt = KnownCnt.getMaxValue().getLimitedValue(BitWidth - 1); in setShiftFlags()
1018 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() local
1036 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
1042 C1->ult(BitWidth)) { in visitShl()
1067 C1->ult(BitWidth)) { in visitShl()
1080 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
1091 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
1112 APInt Mask(APInt::getHighBitsSet(BitWidth, BitWidth - ShAmtC)); in visitShl()
1116 if (match(Op0, m_Shl(m_Value(X), m_APInt(C1))) && C1->ult(BitWidth)) { in visitShl()
1119 if (AmtSum < BitWidth) in visitShl()
1163 unsigned Op1Val = C->getLimitedValue(BitWidth); in visitShl()
1164 APInt Bits = APInt::getHighBitsSet(BitWidth, BitWidth - Op1Val); in visitShl()
1219 if (match(Op1, m_Sub(m_SpecificInt(BitWidth - 1), m_Value(X)))) in visitShl()
1221 ConstantInt::get(Ty, APInt::getSignMask(BitWidth)), X); in visitShl()
1250 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() local
1254 match(Op1, m_SpecificIntAllowUndef(BitWidth - 1))) in visitLShr()
1260 if (II && isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmtC && in visitLShr()
1275 if (match(Op0, m_Shl(m_Value(X), m_APInt(C1))) && C1->ult(BitWidth)) { in visitLShr()
1288 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1304 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1310 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1324 unsigned Op1Val = C->getLimitedValue(BitWidth); in visitLShr()
1325 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1344 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1352 if (ShAmtC == BitWidth - 1) { in visitLShr()
1358 if (ShAmtC == BitWidth - SrcTyBitWidth) { in visitLShr()
1367 if (ShAmtC == BitWidth - 1) { in visitLShr()
1388 if (AmtSum < BitWidth) in visitLShr()
1404 (TruncSrc->hasOneUse() || C1->uge(SrcWidth - BitWidth))) { in visitLShr()
1410 APInt MaskC = APInt::getAllOnes(BitWidth).lshr(ShAmtC); in visitLShr()
1421 if (BitWidth > 2 && ShAmtC * 2 == BitWidth && (*MulC - 1).isPowerOf2() && in visitLShr()
1449 unsigned WidthDiff = BitWidth - SrcWidth; in visitLShr()
1577 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitAShr() local
1579 if (match(Op1, m_APInt(ShAmtAPInt)) && ShAmtAPInt->ult(BitWidth)) { in visitAShr()
1587 ShAmt == BitWidth - X->getType()->getScalarSizeInBits()) in visitAShr()
1594 ShOp1->ult(BitWidth)) { in visitAShr()
1613 ShOp1->ult(BitWidth)) { in visitAShr()
1616 AmtSum = std::min(AmtSum, BitWidth - 1); in visitAShr()
1630 if (ShAmt == BitWidth - 1) { in visitAShr()
1650 if (match(Op1, m_SpecificIntAllowUndef(BitWidth - 1)) && in visitAShr()
1652 m_SpecificIntAllowUndef(BitWidth - 1))))) { in visitAShr()
1666 if (MaskedValueIsZero(Op0, APInt::getSignMask(BitWidth), 0, &I)) { in visitAShr()