Lines Matching refs:ShrAmt
634 const APInt *ShrAmt; in SimplifyDemandedUseBits() local
635 if (match(I->getOperand(0), m_Shr(m_Value(), m_APInt(ShrAmt)))) in SimplifyDemandedUseBits()
637 if (Value *R = simplifyShrShlDemandedBits(Shr, *ShrAmt, I, *SA, in SimplifyDemandedUseBits()
1331 unsigned ShrAmt = ShrOp1.getZExtValue(); in simplifyShrShlDemandedBits() local
1341 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) : in simplifyShrShlDemandedBits()
1342 (BitMask1.ashr(ShrAmt) << ShlAmt); in simplifyShrShlDemandedBits()
1344 if (ShrAmt <= ShlAmt) { in simplifyShrShlDemandedBits()
1345 BitMask2 <<= (ShlAmt - ShrAmt); in simplifyShrShlDemandedBits()
1347 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt): in simplifyShrShlDemandedBits()
1348 BitMask2.ashr(ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()
1353 if (ShrAmt == ShlAmt) in simplifyShrShlDemandedBits()
1360 if (ShrAmt < ShlAmt) { in simplifyShrShlDemandedBits()
1361 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt); in simplifyShrShlDemandedBits()
1367 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt); in simplifyShrShlDemandedBits()