[PATCH] D63885: [LOOPINFO] Introduce the loop guard API.
Whitney via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 12:08:01 PDT 2019
Whitney marked an inline comment as done.
Whitney added inline comments.
================
Comment at: llvm/lib/Analysis/LoopInfo.cpp:418-419
+ // loops.
+ if (!Succ->getUniqueSuccessor())
+ return true;
+
----------------
Meinersbur wrote:
> With this added, we don't need a DominatorTree anymore. Any guard will directly branch into the header (or a series of unconditional branches such as the preheader).
Without DominatorTree, how can we know a given branch will directly/indirectly branch into the header? It could be a branch after the loop. Did I miss something?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63885/new/
https://reviews.llvm.org/D63885
More information about the llvm-commits
mailing list