[NFC][LoopInterchange] Explicitly pass both `InnerLoop` and `OuterLoop` to `processLoop`
authorTa-Wei Tu <tu.da.wei@gmail.com>
Tue, 16 Feb 2021 14:16:53 +0000 (22:16 +0800)
committerTa-Wei Tu <tu.da.wei@gmail.com>
Tue, 16 Feb 2021 14:17:44 +0000 (22:17 +0800)
commit6b612a7baf8ef6ab775f5ae48b8ffc3b51e8e9a3
tree01964eb63d5db095ddc443895df1d1d14fd9b061
parente86f9ba15c41492c4ff9cd860136f69cfb4e17d2
[NFC][LoopInterchange] Explicitly pass both `InnerLoop` and `OuterLoop` to `processLoop`

This is a split patch of D96644.

Explicitly pass both `InnerLoop` and `OuterLoop` to function `processLoop` to remove the need to swap elements in loop list and allow making loop list an `ArrayRef`.
Also, fix inconsistent spellings of `OuterLoopId` and `Inner Loop Id` in debug log.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D96650
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