[PATCH] D60565: [LOOPINFO] Extend Loop object to add utilities to get the loop bounds, step, induction variable, and guard branch.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 14:04:16 PDT 2019
fhahn added inline comments.
================
Comment at: llvm/lib/Analysis/LoopInfo.cpp:319
+
+PHINode *Loop::getInductionVariable(ScalarEvolution &SE) const {
+ if (!isLoopSimplifyForm())
----------------
fhahn wrote:
> Isn't the main part of this function the same as InductionDescriptor::isInductionPHI() ? http://llvm.org/doxygen/classllvm_1_1InductionDescriptor.html#a1974b8e8a8bae482a772ebfab1e9c794
at leas conceptually
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60565/new/
https://reviews.llvm.org/D60565
More information about the llvm-commits
mailing list