Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ShrAmt

849   unsigned ShrAmt = cast<ConstantInt>(Shr->getOperand(1))->getZExtValue();
855 if (ShlAmt == 0 || ShrAmt == 0)
865 BitMask1 = isLshr ? (BitMask1.lshr(ShrAmt) << ShlAmt) :
866 (BitMask1.ashr(ShrAmt) << ShlAmt);
868 if (ShrAmt <= ShlAmt) {
869 BitMask2 <<= (ShlAmt - ShrAmt);
871 BitMask2 = isLshr ? BitMask2.lshr(ShrAmt - ShlAmt):
872 BitMask2.ashr(ShrAmt - ShlAmt);
877 if (ShrAmt == ShlAmt)
884 if (ShrAmt < ShlAmt) {
885 Constant *Amt = ConstantInt::get(VarX->getType(), ShlAmt - ShrAmt);
891 Constant *Amt = ConstantInt::get(VarX->getType(), ShrAmt - ShlAmt);