[llvm] aca7167 - [NFC][LoopUnrollAndJam] clang-format.
Whitney Tsang via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 17:06:10 PDT 2020
Author: Whitney Tsang
Date: 2020-03-14T00:04:10Z
New Revision: aca7167535e8a2b39c55d99a8f47bca6a76ae352
URL: https://github.com/llvm/llvm-project/commit/aca7167535e8a2b39c55d99a8f47bca6a76ae352
DIFF: https://github.com/llvm/llvm-project/commit/aca7167535e8a2b39c55d99a8f47bca6a76ae352.diff
LOG: [NFC][LoopUnrollAndJam] clang-format.
I am currently working on this file.
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
index ff21e272832d..f0c5d6b2ada0 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
@@ -438,11 +438,11 @@ static bool tryToUnrollAndJamLoop(Function &F, DominatorTree &DT, LoopInfo &LI,
int OptLevel) {
bool DidSomething = false;
- // The loop unroll and jam pass requires loops to be in simplified form, and also needs LCSSA.
- // Since simplification may add new inner loops, it has to run before the
- // legality and profitability checks. This means running the loop unroll and jam pass
- // will simplify all loops, regardless of whether anything end up being
- // unroll and jammed.
+ // The loop unroll and jam pass requires loops to be in simplified form, and
+ // also needs LCSSA. Since simplification may add new inner loops, it has to
+ // run before the legality and profitability checks. This means running the
+ // loop unroll and jam pass will simplify all loops, regardless of whether
+ // anything end up being unroll and jammed.
for (auto &L : LI) {
DidSomething |=
simplifyLoop(L, &DT, &LI, &SE, &AC, nullptr, false /* PreserveLCSSA */);
More information about the llvm-commits
mailing list