[PATCH] D38725: [LoopUnroll] Clean up remarks for unroll remainder

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 06:21:44 PDT 2017


dmgreen created this revision.
Herald added a subscriber: fhahn.

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.


https://reviews.llvm.org/D38725

Files:
  include/llvm/Transforms/Utils/UnrollLoop.h
  lib/Transforms/Utils/LoopUnroll.cpp
  lib/Transforms/Utils/LoopUnrollRuntime.cpp
  test/Transforms/LoopUnroll/runtime-unroll-remainder.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38725.118371.patch
Type: text/x-patch
Size: 6637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171010/2cba385b/attachment.bin>


More information about the llvm-commits mailing list