Lines Matching refs:m_Value
551 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
552 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
689 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
711 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
733 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst()
744 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst()
745 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst()
755 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst()
756 match(Op1, m_PtrToInt(m_Value(Y)))) in SimplifySubInst()
844 if (match(Op0, m_NegZero()) && match(Op1, m_FSub(m_NegZero(), m_Value(X)))) in SimplifyFSubInst()
849 match(Op1, m_FSub(m_AnyZero(), m_Value(X)))) in SimplifyFSubInst()
909 if (match(Op0, m_Exact(m_IDiv(m_Value(X), m_Specific(Op1)))) || // (X / Y) * Y in SimplifyMulInst()
910 match(Op1, m_Exact(m_IDiv(m_Value(X), m_Specific(Op0))))) // Y * (X / Y) in SimplifyMulInst()
1020 if (match(Op0, m_Mul(m_Value(X), m_Value(Y))) && (X == Op1 || Y == Op1)) { in SimplifyDiv()
1034 if ((isSigned && match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyDiv()
1035 (!isSigned && match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyDiv()
1040 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv()
1180 match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyRem()
1182 match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyRem()
1387 if (match(Op0, m_Exact(m_Shr(m_Value(X), m_Specific(Op1))))) in SimplifyShlInst()
1410 if (match(Op0, m_NUWShl(m_Value(X), m_Specific(Op1)))) in SimplifyLShrInst()
1439 if (match(Op0, m_NSWShl(m_Value(X), m_Specific(Op1)))) in SimplifyAShrInst()
1464 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(Y), m_Zero())) || in simplifyUnsignedRangeCheck()
1469 if (match(UnsignedICmp, m_ICmp(UnsignedPred, m_Value(X), m_Specific(Y))) && in simplifyUnsignedRangeCheck()
1473 m_ICmp(UnsignedPred, m_Value(Y), m_Specific(X))) && in simplifyUnsignedRangeCheck()
1511 if (match(Op0, m_ICmp(Pred0, m_Value(V), m_APInt(C0))) && in SimplifyAndOfICmps()
1521 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1596 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
1601 if (match(Op1, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
1693 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1770 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1775 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1780 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1785 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1817 if (match(Op0, m_And(m_Value(A), m_Value(C))) && in SimplifyOrInst()
1818 match(Op1, m_And(m_Value(B), m_Value(D)))) { in SimplifyOrInst()
1828 match(A, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
1839 match(B, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
2306 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2309 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2313 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2316 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2321 } else if (match(LHS, m_SDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2331 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2350 } else if (match(LHS, m_NUWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2354 } else if (match(LHS, m_NSWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2366 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2371 } else if (match(LHS, m_LShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2378 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2386 } else if (match(LHS, m_AShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2399 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2402 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2405 } else if (match(LHS, m_NUWAdd(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2682 if (LBO && match(LBO, m_c_Or(m_Value(Y), m_Specific(RHS)))) { in SimplifyICmpInst()
2702 if (RBO && match(RBO, m_c_Or(m_Value(Y), m_Specific(LHS)))) { in SimplifyICmpInst()
2724 if (LBO && match(LBO, m_CombineOr(m_And(m_Value(), m_Specific(RHS)), in SimplifyICmpInst()
2725 m_And(m_Specific(RHS), m_Value())))) { in SimplifyICmpInst()
2732 if (RBO && match(RBO, m_CombineOr(m_And(m_Value(), m_Specific(LHS)), in SimplifyICmpInst()
2733 m_And(m_Specific(LHS), m_Value())))) { in SimplifyICmpInst()
2741 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in SimplifyICmpInst()
2763 if (LBO && match(LBO, m_URem(m_Value(), m_Specific(RHS)))) { in SimplifyICmpInst()
2794 if (RBO && match(RBO, m_URem(m_Value(), m_Specific(LHS)))) { in SimplifyICmpInst()
2826 if (LBO && (match(LBO, m_LShr(m_Specific(RHS), m_Value())) || in SimplifyICmpInst()
2827 match(LBO, m_UDiv(m_Specific(RHS), m_Value())))) { in SimplifyICmpInst()
2842 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) && in SimplifyICmpInst()
2908 if (match(LHS, m_SMax(m_Value(A), m_Value(B))) && (A == RHS || B == RHS)) { in SimplifyICmpInst()
2913 } else if (match(RHS, m_SMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2919 } else if (match(LHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2926 } else if (match(RHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2978 if (match(LHS, m_UMax(m_Value(A), m_Value(B))) && (A == RHS || B == RHS)) { in SimplifyICmpInst()
2983 } else if (match(RHS, m_UMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2989 } else if (match(LHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2996 } else if (match(RHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3048 if (match(LHS, m_SMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3049 match(RHS, m_SMin(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3058 } else if (match(LHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3059 match(RHS, m_SMax(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3068 } else if (match(LHS, m_UMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3069 match(RHS, m_UMin(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3078 } else if (match(LHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3079 match(RHS, m_UMax(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3413 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3555 if (match(P, m_PtrToInt(m_Value(Temp)))) in SimplifyGEPInst()
3563 match(Ops[1], m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))))) in SimplifyGEPInst()
3570 m_AShr(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst()
3579 m_SDiv(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst()