[PATCH] D68789: [LoopNest]: Analysis to discover properties of a loop nest.

Ettore Tiotto via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 13:32:57 PST 2019


etiotto added a comment.

In D68789#1753797 <https://reviews.llvm.org/D68789#1753797>, @bmahjour wrote:

> In D68789#1753777 <https://reviews.llvm.org/D68789#1753777>, @Meinersbur wrote:
>
> > [suggestion] Add a methods that returns/fills a vector with all the `Loop*`s that are part of the perfect loop nest.
>
>
> That sounds like a good idea. I'd suggest returning a vector of vectors actually in case where there are multiple perfect sub nests in a loop nest. ie:
>
>   L1
>     L2
>      <code>
>       L3
>         L4
>           L5
>
>
> return:
>  `{{L1,L2},{L3,L4,L5}}`


I see how that would be useful. Assuming data dependencies are preserved such a vector could be used to interchange loops in the 2 groups (L1 LLVM Compiler Infrastracture <https://reviews.llvm.org/L1> and {L3,L4,L5}}. I will add this functionality in the next patch.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68789/new/

https://reviews.llvm.org/D68789





More information about the llvm-commits mailing list