[llvm] [PatternMatchHelpers] Introduce m_Unless (NFC) (PR #212454)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 06:59:53 PDT 2026


================
@@ -1376,11 +1376,11 @@ SDValue DAGCombiner::reassociateReduction(unsigned RedOpc, unsigned Opc,
   if (sd_match(N0,
                m_OneUse(m_c_BinOp(
                    Opc, m_Value(RedA, m_OneUse(m_UnaryOp(RedOpc, m_Value(A)))),
-                   m_Value(B, m_Unless(m_UnaryOp(RedOpc, m_Value())))))) &&
+                   m_Value(B, m_Invert(m_UnaryOp(RedOpc, m_Value())))))) &&
----------------
lukel97 wrote:

Now that PatternMatchHelpers aren't in the top-level scope do we still end up with an ambiguity here if we rename it back to m_Unless?

https://github.com/llvm/llvm-project/pull/212454


More information about the llvm-commits mailing list