[PATCH] D106045: [LoopFlatten] Use Loop to identify loop induction phi. NFC
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 15 01:37:25 PDT 2021
SjoerdMeijer added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopFlatten.cpp:127
// search for the best one?
InductionPHI = nullptr;
+ InductionPHI = L->getInductionVariable(*SE);
----------------
We don't need this anymore?
================
Comment at: llvm/lib/Transforms/Scalar/LoopFlatten.cpp:132
return false;
+ } else {
+ LLVM_DEBUG(dbgs() << "Found induction PHI: "; InductionPHI->dump());
----------------
And we don't need the `else` I think.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106045/new/
https://reviews.llvm.org/D106045
More information about the llvm-commits
mailing list