Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:Cst1

960 /// FoldICmpShrCst - Handle "icmp(([al]shr X, cst1), cst2)".
3218 ConstantInt *Cst1;
3221 match(Op1, m_And(m_Value(B), m_ConstantInt(Cst1)))) ||
3223 match(Op0, m_And(m_Value(B), m_ConstantInt(Cst1))) &&
3225 APInt Pow2 = Cst1->getValue() + 1;
3234 if ((match(Op0, m_OneUse(m_LShr(m_Value(A), m_ConstantInt(Cst1)))) &&
3235 match(Op1, m_OneUse(m_LShr(m_Value(B), m_Specific(Cst1))))) ||
3236 (match(Op0, m_OneUse(m_AShr(m_Value(A), m_ConstantInt(Cst1)))) &&
3237 match(Op1, m_OneUse(m_AShr(m_Value(B), m_Specific(Cst1)))))) {
3238 unsigned TypeBits = Cst1->getBitWidth();
3239 unsigned ShAmt = (unsigned)Cst1->getLimitedValue(TypeBits);
3250 // Transform "icmp eq (trunc (lshr(X, cst1)), cst" to
3256 match(Op1, m_ConstantInt(Cst1)) &&
3267 APInt CmpV = Cst1->getValue().zext(ASize);