[LoopUnroll] Clean up remarks for unroll remainder
authorDavid Green <david.green@arm.com>
Tue, 31 Oct 2017 10:47:46 +0000 (10:47 +0000)
committerDavid Green <david.green@arm.com>
Tue, 31 Oct 2017 10:47:46 +0000 (10:47 +0000)
commit64f53b42144e36820a6a56c5fc08d1f5d4ded9bd
treecdf858cd06a895061801c3ee26355d153ece138c
parent73447900055804edac1d4f00fe47678545efd12d
[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
llvm/include/llvm/Transforms/Utils/UnrollLoop.h
llvm/lib/Transforms/Utils/LoopUnroll.cpp
llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
llvm/test/Transforms/LoopUnroll/loop-remarks.ll