[PATCH] D152541: [InstCombine][CGP] Move swapMayExposeCSEOpportunities() fold

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 03:24:10 PDT 2023


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM - cheers



================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:1851
+    if (++NumInspected > 128)
+      return false;
+    if (match(U, m_Sub(m_Specific(Op1), m_Specific(Op0))))
----------------
I feel like this limiter has a story behind it - but I'm not sure whether we need to do anything about it......


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

https://reviews.llvm.org/D152541



More information about the llvm-commits mailing list