[PATCH] Remove unroll pragma metadata after it is used

Mark Heffernan meheff at google.com
Thu Jul 17 13:37:25 PDT 2014


Hi eliben,

This change causes the loop unroller to remove unroll pragma metadata after it is used.  This prevents a loop from being unrolled more than is directed by a pragma if the loop
unrolling pass is run more than once which it generally is.

http://reviews.llvm.org/D4571

Files:
  lib/Transforms/Scalar/LoopUnrollPass.cpp
  test/Transforms/LoopUnroll/unroll-pragmas-disabled.ll
  test/Transforms/LoopUnroll/unroll-pragmas.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4571.11610.patch
Type: text/x-patch
Size: 6097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140717/d9193c97/attachment.bin>


More information about the llvm-commits mailing list