Home | History | Annotate | Download | only in InstCombine

Lines Matching full:bitwidth

56   unsigned BitWidth = Inst.getType()->getScalarSizeInBits();
57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
96 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero
110 uint32_t BitWidth = DemandedMask.getBitWidth();
113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) &&
114 KnownZero.getBitWidth() == BitWidth &&
115 KnownOne.getBitWidth() == BitWidth &&
117 "must have same BitWidth");
142 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
143 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0);
235 DemandedMask = APInt::getAllOnesValue(BitWidth);
441 DemandedMask = DemandedMask.trunc(BitWidth);
442 KnownZero = KnownZero.trunc(BitWidth);
443 KnownOne = KnownOne.trunc(BitWidth);
479 DemandedMask = DemandedMask.zext(BitWidth);
480 KnownZero = KnownZero.zext(BitWidth);
481 KnownOne = KnownOne.zext(BitWidth);
484 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth);
492 APInt::getLowBitsSet(BitWidth, SrcBitWidth);
494 APInt NewBits(APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth));
506 InputDemandedBits = InputDemandedBits.zext(BitWidth);
507 KnownZero = KnownZero.zext(BitWidth);
508 KnownOne = KnownOne.zext(BitWidth);
533 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ));
567 uint64_t ShiftAmt = SA->getLimitedValue(BitWidth-1);
573 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1);
575 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt);
585 KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt);
591 uint64_t ShiftAmt = SA->getLimitedValue(BitWidth-1);
599 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt);
609 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt));
632 uint32_t ShiftAmt = SA->getLimitedValue(BitWidth-1);
639 DemandedMaskIn.setBit(BitWidth-1);
644 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt);
651 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt));
656 APInt SignBit(APInt::getSignBit(BitWidth));
662 if (BitWidth <= ShiftAmt || KnownZero[BitWidth-ShiftAmt-1] ||
686 APInt Mask2 = LowBits | APInt::getSignBit(BitWidth);
697 if (LHSKnownZero[BitWidth-1] || ((LHSKnownZero & LowBits) == LowBits))
702 if (LHSKnownOne[BitWidth-1] && ((LHSKnownOne & LowBits) != 0))
712 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
721 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0);
722 APInt AllOnes = APInt::getAllOnesValue(BitWidth);
732 KnownZero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask;
751 if (BitWidth-NLZ-NTZ == 8) {
753 unsigned InputBit = BitWidth-NTZ-8;
814 unsigned BitWidth = Ty->getIntegerBitWidth();
815 if (ShlOp1.uge(BitWidth) || ShrOp1.uge(BitWidth))
825 APInt BitMask1(APInt::getAllOnesValue(BitWidth));
826 APInt BitMask2(APInt::getAllOnesValue(BitWidth));