[PATCH] D102615: [LoopDeletion] Break backedge if we can prove that the loop is exited on 1st iteration (try 3)
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 18 02:55:37 PDT 2021
mkazantsev added a comment.
In D102615#2826417 <https://reviews.llvm.org/D102615#2826417>, @nikic wrote:
> LGTM
================
Comment at: llvm/lib/Transforms/Scalar/LoopDeletion.cpp:190
+ BinaryOperator *BO;
+ if (match(V, m_BinOp(BO))) {
+ Value *LHS =
----------------
nikic wrote:
> Simple dyn_cast<BinaryOperator> seems simpler than going through PatternMatch here?
True.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102615/new/
https://reviews.llvm.org/D102615
More information about the llvm-commits
mailing list