[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 12:01:36 PDT 2021
dmgreen added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopFlatten.cpp:692
+ Changed |=
+ simplifyLoop(L, DT, LI, SE, AC, nullptr, false /* PreserveLCSSA */);
+ Changed |= formLCSSARecursively(*L, *DT, LI, SE);
----------------
stelios-arm wrote:
> fhahn wrote:
> > Would it not be more natural to do that directly in the main loop in `Flatten()` rather than duplicating the loop?
> Oh yes, I missed that.
I'm not sure that's better. It would mean that the old pass manager duplicates the simplification/lcssa forming that it has already done through the pass dependencies. Put here it is only called once for the entire loop nest.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102249/new/
https://reviews.llvm.org/D102249
More information about the llvm-commits
mailing list