[PATCH] Enable runtime unrolling with unroll pragma metadata

Mark Heffernan meheff at google.com
Tue Jun 30 16:35:19 PDT 2015


Hi hfinkel,

Enable runtime unrolling for loops with unroll full metadata ("#pragma unroll")
and a runtime trip count.  For these loops the default unroll threshold limit is
used. Previously loops marked with "#pragma unroll" and a runtime trip count
would not be unrolled unless the -unroll-runtime command line flag was also
given. An additional affect of this change is that loops with the unroll count
metadata ("#pragma unroll N") and a runtime loop count will use the runtime loop
unroller in LoopUnrollRuntime.cpp which can generate more efficient code.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10854

Files:
  lib/Transforms/Scalar/LoopUnrollPass.cpp
  test/Transforms/LoopUnroll/unroll-pragmas.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10854.28824.patch
Type: text/x-patch
Size: 5975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150630/384a5bdb/attachment.bin>


More information about the llvm-commits mailing list