[PATCH] D42365: [LoopFlatten] Add a loop-flattening pass
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 01:37:26 PST 2018
samparker added inline comments.
Herald added a subscriber: hintonda.
================
Comment at: lib/Transforms/Scalar/LoopFlatten.cpp:422
+ // (non-instructions are all inherently invariant).
+ auto InnerLimitInst = dyn_cast<Instruction>(InnerLimit);
+ if (InnerLimitInst &&
----------------
Couldn't you just use 'OuterLoop->isLoopInvariant(InnerLimit)?
https://reviews.llvm.org/D42365
More information about the llvm-commits
mailing list