[PATCH] D97847: Use LoopNest as the primary object on which LoopInterchange operates

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 03:03:59 PST 2021


TaWeiTu created this revision.
TaWeiTu added a reviewer: Whitney.
Herald added a subscriber: hiraditya.
TaWeiTu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Replace the usage of `LoopList` in `LoopInterchange` completely with `LoopNest`.
Due to this change, we no longer need to explicitly pass `OuterLoop` and `InnerLoop` to `processLoop` as in D96650 <https://reviews.llvm.org/D96650>.
Also, make `interchangeNestedLoops` a member function of `LoopNest` so that `LoopNestAnalysis` is preserved.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97847

Files:
  llvm/include/llvm/Analysis/LoopNestAnalysis.h
  llvm/lib/Transforms/Scalar/LoopInterchange.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97847.327734.patch
Type: text/x-patch
Size: 7985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210303/daf0513f/attachment.bin>


More information about the llvm-commits mailing list