]> granicus.if.org Git - llvm/commit
[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)
commit7fa6b255422ac50469c14134888a772aaa2d54ff
tree368c81b4ae892a68eedefb7060ac459f777d791f
parent51db7fc904ffeefa0faae9534dbe14d60591931c
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316986 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/UnrollLoop.h
lib/Transforms/Utils/LoopUnroll.cpp
lib/Transforms/Utils/LoopUnrollRuntime.cpp
test/Transforms/LoopUnroll/loop-remarks.ll