[PATCH] D102615: [LoopDeletion] Break backedge if we can prove that the loop is exited on 1st iteration (try 3)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 18 01:38:36 PDT 2021


nikic accepted this revision.
nikic added a comment.

LGTM



================
Comment at: llvm/lib/Transforms/Scalar/LoopDeletion.cpp:190
+  BinaryOperator *BO;
+  if (match(V, m_BinOp(BO))) {
+    Value *LHS =
----------------
Simple dyn_cast<BinaryOperator> seems simpler than going through PatternMatch here?


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

https://reviews.llvm.org/D102615



More information about the llvm-commits mailing list