[NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function
authorWhitney Tsang <whitneyt@ca.ibm.com>
Thu, 9 Jan 2020 16:15:53 +0000 (16:15 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Thu, 9 Jan 2020 16:18:36 +0000 (16:18 +0000)
commitd27a15fed79c8e8484825ce6c3ce1682daeb1547
tree4eedaf99ca70f0f24abd6e2c7a6837a1d5a47cd3
parent45c971f7eef18ef2b77a5f64133dbd7bd5939d5f
[NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function
pass.

Summary: This patch changes LoopUnrollAndJamPass to a function pass, and
keeps the loops traversal order same as defined in
FunctionToLoopPassAdaptor LoopPassManager.h.

The next patch will change the loop traversal to outer to inner order,
so more loops can be transform.

Discussion in llvm-dev mailing list:
https://groups.google.com/forum/#!topic/llvm-dev/LF4rUjkVI2g
Reviewer: dmgreen, jdoerfert, Meinersbur, kbarton, bmahjour, etiotto
Reviewed By: dmgreen
Subscribers: hiraditya, zzheng, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D72230
llvm/include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
llvm/test/Transforms/LoopUnrollAndJam/dependencies.ll
llvm/test/Transforms/LoopUnrollAndJam/disable.ll
llvm/test/Transforms/LoopUnrollAndJam/pragma-explicit.ll
llvm/test/Transforms/LoopUnrollAndJam/unroll-and-jam.ll