[PATCH] D135380: [GlobalISel] Combine (X op Y) == X --> Y == 0

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 19:12:14 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:6071
+    if (!mi_match(Dst, MRI,
+                  m_GICmp(m_Pred(Pred), m_Reg(X),
+                          m_any_of(m_GAdd(m_Reg(OpLHS), m_Reg(OpRHS)),
----------------
Not using the _c_ versions?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135380/new/

https://reviews.llvm.org/D135380



More information about the llvm-commits mailing list