Lines Matching refs:ShAmt
945 unsigned ShAmt = 0; in foldAddWithConstant() local
947 ShAmt = BitWidth - C->logBase2() - 1; in foldAddWithConstant()
949 ShAmt = BitWidth - C2->logBase2() - 1; in foldAddWithConstant()
950 if (ShAmt && MaskedValueIsZero(X, APInt::getHighBitsSet(BitWidth, ShAmt), in foldAddWithConstant()
952 Constant *ShAmtC = ConstantInt::get(Ty, ShAmt); in foldAddWithConstant()
1257 Value *X, *Y, *ShAmt; in factorizeMathWithShlOps() local
1258 if (!match(Op0, m_Shl(m_Value(X), m_Value(ShAmt))) || in factorizeMathWithShlOps()
1259 !match(Op1, m_Shl(m_Value(Y), m_Specific(ShAmt)))) in factorizeMathWithShlOps()
1274 auto *NewShl = BinaryOperator::CreateShl(NewMath, ShAmt); in factorizeMathWithShlOps()
2038 const APInt *ShAmt; in visitSub() local
2040 if (match(Op1, m_AShr(m_Value(A), m_APInt(ShAmt))) && in visitSub()
2041 Op1->hasNUses(2) && *ShAmt == Ty->getScalarSizeInBits() - 1 && in visitSub()