Lines Matching refs:m_Value
554 if (match(Op1, m_Sub(m_Value(Y), m_Specific(Op0))) || in SimplifyAddInst()
555 match(Op0, m_Sub(m_Value(Y), m_Specific(Op1)))) in SimplifyAddInst()
690 if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z in SimplifySubInst()
712 if (MaxRecurse && match(Op1, m_Add(m_Value(Y), m_Value(Z)))) { // X - (Y + Z) in SimplifySubInst()
734 if (MaxRecurse && match(Op1, m_Sub(m_Value(X), m_Value(Y)))) // Z - (X - Y) in SimplifySubInst()
745 if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) && in SimplifySubInst()
746 match(Op1, m_Trunc(m_Value(Y)))) in SimplifySubInst()
756 if (match(Op0, m_PtrToInt(m_Value(X))) && in SimplifySubInst()
757 match(Op1, m_PtrToInt(m_Value(Y)))) in SimplifySubInst()
852 if (match(Op1, m_FSub(m_NegZero(), m_Value(X)))) in SimplifyFSubInst()
854 if (FMF.noSignedZeros() && match(Op1, m_FSub(m_AnyZero(), m_Value(X)))) in SimplifyFSubInst()
921 if (match(Op0, m_Exact(m_IDiv(m_Value(X), m_Specific(Op1)))) || // (X / Y) * Y in SimplifyMulInst()
922 match(Op1, m_Exact(m_IDiv(m_Value(X), m_Specific(Op0))))) // Y * (X / Y) in SimplifyMulInst()
1035 if (match(Op0, m_Mul(m_Value(X), m_Value(Y))) && (X == Op1 || Y == Op1)) { in SimplifyDiv()
1049 if ((isSigned && match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyDiv()
1050 (!isSigned && match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyDiv()
1055 if (!isSigned && match(Op0, m_UDiv(m_Value(X), m_ConstantInt(C1))) && in SimplifyDiv()
1198 match(Op0, m_SRem(m_Value(), m_Specific(Op1)))) || in SimplifyRem()
1200 match(Op0, m_URem(m_Value(), m_Specific(Op1))))) in SimplifyRem()
1392 if (match(Op0, m_Exact(m_Shr(m_Value(X), m_Specific(Op1))))) in SimplifyShlInst()
1415 if (match(Op0, m_NUWShl(m_Value(X), m_Specific(Op1)))) in SimplifyLShrInst()
1444 if (match(Op0, m_NSWShl(m_Value(X), m_Specific(Op1)))) in SimplifyAShrInst()
1469 if (!match(ZeroICmp, m_ICmp(EqPred, m_Value(Y), m_Zero())) || in simplifyUnsignedRangeCheck()
1474 if (match(UnsignedICmp, m_ICmp(UnsignedPred, m_Value(X), m_Specific(Y))) && in simplifyUnsignedRangeCheck()
1478 m_ICmp(UnsignedPred, m_Value(Y), m_Specific(X))) && in simplifyUnsignedRangeCheck()
1515 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1595 if (match(Op0, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
1600 if (match(Op1, m_Or(m_Value(A), m_Value(B))) && in SimplifyAndInst()
1674 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1754 if (match(Op0, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1759 if (match(Op1, m_And(m_Value(A), m_Value(B))) && in SimplifyOrInst()
1764 if (match(Op0, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1769 if (match(Op1, m_Not(m_And(m_Value(A), m_Value(B)))) && in SimplifyOrInst()
1801 if (match(Op0, m_And(m_Value(A), m_Value(C))) && in SimplifyOrInst()
1802 match(Op1, m_And(m_Value(B), m_Value(D)))) { in SimplifyOrInst()
1812 match(A, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
1823 match(B, m_Add(m_Value(V1), m_Value(V2)))) { in SimplifyOrInst()
2280 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2283 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2287 } else if (match(LHS, m_UDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2290 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2295 } else if (match(LHS, m_SDiv(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2305 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2324 } else if (match(LHS, m_NUWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2328 } else if (match(LHS, m_NSWShl(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2340 } else if (match(LHS, m_LShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2345 } else if (match(LHS, m_LShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2352 } else if (match(LHS, m_AShr(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2360 } else if (match(LHS, m_AShr(m_ConstantInt(CI2), m_Value()))) { in SimplifyICmpInst()
2373 } else if (match(LHS, m_Or(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2376 } else if (match(LHS, m_And(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2379 } else if (match(LHS, m_NUWAdd(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2654 if (LBO && match(LBO, m_CombineOr(m_Or(m_Value(), m_Specific(RHS)), in SimplifyICmpInst()
2655 m_Or(m_Specific(RHS), m_Value())))) { in SimplifyICmpInst()
2662 if (RBO && match(RBO, m_CombineOr(m_Or(m_Value(), m_Specific(LHS)), in SimplifyICmpInst()
2663 m_Or(m_Specific(LHS), m_Value())))) { in SimplifyICmpInst()
2671 if (LBO && match(LBO, m_CombineOr(m_And(m_Value(), m_Specific(RHS)), in SimplifyICmpInst()
2672 m_And(m_Specific(RHS), m_Value())))) { in SimplifyICmpInst()
2679 if (RBO && match(RBO, m_CombineOr(m_And(m_Value(), m_Specific(LHS)), in SimplifyICmpInst()
2680 m_And(m_Specific(LHS), m_Value())))) { in SimplifyICmpInst()
2688 if (!CmpInst::isUnsigned(Pred) && match(LHS, m_Neg(m_ZExt(m_Value())))) { in SimplifyICmpInst()
2710 if (LBO && match(LBO, m_URem(m_Value(), m_Specific(RHS)))) { in SimplifyICmpInst()
2741 if (RBO && match(RBO, m_URem(m_Value(), m_Specific(LHS)))) { in SimplifyICmpInst()
2772 if (LBO && match(LBO, m_UDiv(m_Specific(RHS), m_Value()))) { in SimplifyICmpInst()
2787 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) && in SimplifyICmpInst()
2853 if (match(LHS, m_SMax(m_Value(A), m_Value(B))) && (A == RHS || B == RHS)) { in SimplifyICmpInst()
2858 } else if (match(RHS, m_SMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2864 } else if (match(LHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2871 } else if (match(RHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2923 if (match(LHS, m_UMax(m_Value(A), m_Value(B))) && (A == RHS || B == RHS)) { in SimplifyICmpInst()
2928 } else if (match(RHS, m_UMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2934 } else if (match(LHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2941 } else if (match(RHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2993 if (match(LHS, m_SMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
2994 match(RHS, m_SMin(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3003 } else if (match(LHS, m_SMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3004 match(RHS, m_SMax(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3013 } else if (match(LHS, m_UMax(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3014 match(RHS, m_UMin(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3023 } else if (match(LHS, m_UMin(m_Value(A), m_Value(B))) && in SimplifyICmpInst()
3024 match(RHS, m_UMax(m_Value(C), m_Value(D))) && in SimplifyICmpInst()
3353 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3495 if (match(P, m_PtrToInt(m_Value(Temp)))) in SimplifyGEPInst()
3503 match(Ops[1], m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))))) in SimplifyGEPInst()
3510 m_AShr(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst()
3519 m_SDiv(m_Sub(m_Value(P), m_PtrToInt(m_Specific(Ops[0]))), in SimplifyGEPInst()