[llvm] [SDPatternMatch] Remove MatchContext (PR #218372)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 05:38:09 PDT 2026
================
@@ -4646,26 +4646,26 @@ SDValue DAGCombiner::visitSUB(SDNode *N) {
// smax(a,b) - smin(a,b) --> abds(a,b)
if ((!LegalOperations || hasOperation(ISD::ABDS, VT)) &&
- sd_match(N0, &DAG, m_SMaxLike(m_Value(A), m_Value(B))) &&
- sd_match(N1, &DAG, m_SMinLike(m_Specific(A), m_Specific(B))))
+ sd_match(N0, m_SMaxLike(DAG, m_Value(A), m_Value(B))) &&
+ sd_match(N1, m_SMinLike(DAG, m_Specific(A), m_Specific(B))))
----------------
RKSimon wrote:
Sorry, but I really don't like the idea of having to repeatedly include DAG down a pattern chain like this
https://github.com/llvm/llvm-project/pull/218372
More information about the llvm-commits
mailing list