[PATCH] D115590: [LoopNest] Add new utilites
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 20 05:52:02 PST 2021
Meinersbur added inline comments.
================
Comment at: llvm/include/llvm/Analysis/LoopNestAnalysis.h:120
+ /// Get the loops in the nest at the given \p Depth.
+ LoopVectorTy getLoopsAtDepth(unsigned Depth) const {
+ assert(Depth >= Loops.front()->getLoopDepth() &&
----------------
Isn't it sufficient to return `Loops[Depth - getOutermostLoop().getLoopDepth()]`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115590/new/
https://reviews.llvm.org/D115590
More information about the llvm-commits
mailing list