diff options
author | David Green <david.green@arm.com> | 2017-10-31 10:47:46 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2017-10-31 10:47:46 +0000 |
commit | 64f53b42144e36820a6a56c5fc08d1f5d4ded9bd (patch) | |
tree | cdf858cd06a895061801c3ee26355d153ece138c /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 73447900055804edac1d4f00fe47678545efd12d (diff) | |
download | bcm5719-llvm-64f53b42144e36820a6a56c5fc08d1f5d4ded9bd.tar.gz bcm5719-llvm-64f53b42144e36820a6a56c5fc08d1f5d4ded9bd.zip |
[LoopUnroll] Clean up remarks for unroll remainder
The optimisation remarks for loop unrolling with an unrolled remainder looks something like:
test.c:7:18: remark: completely unrolled loop with 3 iterations [-Rpass=loop-unroll]
C[i] += A[i*N+j];
^
test.c:6:9: remark: unrolled loop by a factor of 4 with run-time trip count [-Rpass=loop-unroll]
for(int j = 0; j < N; j++)
^
This removes the first of the two messages.
Differential revision: https://reviews.llvm.org/D38725
llvm-svn: 316986
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 9114120bd2b..351163bfa02 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -540,7 +540,6 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count, bool UnrollRemainder, LoopInfo *LI, ScalarEvolution *SE, DominatorTree *DT, AssumptionCache *AC, - OptimizationRemarkEmitter *ORE, bool PreserveLCSSA) { DEBUG(dbgs() << "Trying runtime unrolling on Loop: \n"); DEBUG(L->dump()); @@ -907,12 +906,12 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count, if (remainderLoop && UnrollRemainder) { DEBUG(dbgs() << "Unrolling remainder loop\n"); - UnrollLoop(remainderLoop, /*Count*/Count - 1, /*TripCount*/Count - 1, - /*Force*/false, /*AllowRuntime*/false, - /*AllowExpensiveTripCount*/false, /*PreserveCondBr*/true, - /*PreserveOnlyFirst*/false, /*TripMultiple*/1, - /*PeelCount*/0, /*UnrollRemainder*/false, LI, SE, DT, AC, ORE, - PreserveLCSSA); + UnrollLoop(remainderLoop, /*Count*/ Count - 1, /*TripCount*/ Count - 1, + /*Force*/ false, /*AllowRuntime*/ false, + /*AllowExpensiveTripCount*/ false, /*PreserveCondBr*/ true, + /*PreserveOnlyFirst*/ false, /*TripMultiple*/ 1, + /*PeelCount*/ 0, /*UnrollRemainder*/ false, LI, SE, DT, AC, + /*ORE*/ nullptr, PreserveLCSSA); } NumRuntimeUnrolled++; |