[PATCH] D102249: [LoopFlatten] Simplify loops so that the pass can operate on unsimplified loops.
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 12 09:50:19 PDT 2021
dmgreen added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopFlatten.cpp:689
+ for (const auto &L : *LI) {
+ if (L->getSubLoops().size() != 0) {
+ Changed |=
----------------
Maybe use `if (L->isInnermost()) continue;`?
That would keep the indentation down too, which llvm usually prefers.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102249/new/
https://reviews.llvm.org/D102249
More information about the llvm-commits
mailing list