[PATCH] D96644: [NFC] Refactor LoopInterchange into a loop-nest pass

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 13 01:14:31 PST 2021


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

This is the preliminary patch of converting `LoopInterchange` pass to a loop-nest pass and has no intended functional change.
Besides replacing `Loop` with `LoopNest`, this patch also removes the parameters `OuterLoopId` in many functions since it always has the value of `InnerLoopId - 1`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96644

Files:
  llvm/include/llvm/Analysis/LoopNestAnalysis.h
  llvm/include/llvm/Transforms/Scalar/LoopInterchange.h
  llvm/lib/Transforms/Scalar/LoopInterchange.cpp
  llvm/test/Transforms/LoopInterchange/interchange-flow-dep-outer.ll
  llvm/test/Transforms/LoopInterchange/interchanged-loop-nest-3.ll
  llvm/test/Transforms/LoopInterchange/not-interchanged-loop-nest-3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96644.323537.patch
Type: text/x-patch
Size: 12257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210213/86f1edaf/attachment.bin>


More information about the llvm-commits mailing list