[PATCH] D102615: [LoopDeletion] Break backedge if we can prove that the loop is exited on 1st iteration
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 26 21:34:07 PDT 2021
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopDeletion.cpp:277
+ MarkLiveEdge(BB, BB->getTerminator()->getSuccessor(0));
+ else if (SE.isKnownPredicateAt(ICmpInst::getInversePredicate(Pred), LHSS,
+ RHSS, BB->getTerminator()))
----------------
To save CT, we can give up querying for non-loop successors.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102615/new/
https://reviews.llvm.org/D102615
More information about the llvm-commits
mailing list