[PATCH] D96650: [NFC] Replace OuterLoopId with InnerLoopId - 1

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 13 10:02:22 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.

This is a split patch of D96644 <https://reviews.llvm.org/D96644>.

Since `OuterLoopId` always have the value of `InnerLoopId - 1`, remove it from the argument lists in `LoopInterchange` utility functions.
Also, fix inconsistent spelling of `OuterLoopId` and `Inner Loop Id` in debug log.
The main reason for this refactor is to help passing `ArrayRef` to function `processLoop()` (remove the need to swap elements in loop list).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96650

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96650.323561.patch
Type: text/x-patch
Size: 7562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210213/076c55a5/attachment.bin>


More information about the llvm-commits mailing list