Lines Matching refs:ShlAmt
848 unsigned ShlAmt = ShlOp1.getZExtValue(); in SimplifyShrShlDemandedBits() local
852 KnownZero = APInt::getBitsSet(KnownZero.getBitWidth(), 0, ShlAmt-1); in SimplifyShrShlDemandedBits()
859 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in SimplifyShrShlDemandedBits()
860 (BitMask1.ashr(ShrAmt) << ShlAmt); in SimplifyShrShlDemandedBits()
862 if (ShrAmt <= ShlAmt) { in SimplifyShrShlDemandedBits()
863 BitMask2 <<= (ShlAmt - ShrAmt); in SimplifyShrShlDemandedBits()
865 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in SimplifyShrShlDemandedBits()
866 BitMask2.ashr(ShrAmt - ShlAmt); in SimplifyShrShlDemandedBits()
871 if (ShrAmt == ShlAmt) in SimplifyShrShlDemandedBits()
878 if (ShrAmt < ShlAmt) { in SimplifyShrShlDemandedBits()
879 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt); in SimplifyShrShlDemandedBits()
885 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt); in SimplifyShrShlDemandedBits()