[PATCH] D11739: Add new llvm.loop.unroll.enable metadata
Mark Heffernan
meheff at google.com
Mon Aug 3 15:44:47 PDT 2015
meheff created this revision.
meheff added reviewers: TylerNowicki, hfinkel.
meheff added subscribers: cfe-commits, llvm-commits.
This change adds the unroll metadata "llvm.loop.unroll.enable" which directs
the optimizer to unroll a loop fully if the trip count is known at compile time, and
unroll partially if the trip count is not known at compile time. This differs from
"llvm.loop.unroll.full" which explicitly does not unroll a loop if the trip count is not
known at compile time.
Corresponding clang patch which maps "#pragma unroll" to the new
"llvm.loop.unroll.enable" metadata: http://reviews.llvm.org/D11738
http://reviews.llvm.org/D11739
Files:
docs/LangRef.rst
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/unroll-pragmas.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11739.31279.patch
Type: text/x-patch
Size: 8967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150803/5ed2c6e6/attachment.bin>
More information about the llvm-commits
mailing list