Teach LoopUnrollPass to respect loop unrolling hints in metadata.
authorEli Bendersky <eliben@google.com>
Wed, 11 Jun 2014 23:15:35 +0000 (23:15 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 11 Jun 2014 23:15:35 +0000 (23:15 +0000)
commit87fcb536ab8e70f3578c88c57d12c2ffee86abd2
tree2f009c8acf0c8bb04b5f2b101fca29d6d389a74e
parent02503401b4668c068e6bf032935eac4a97fd7b8d
Teach LoopUnrollPass to respect loop unrolling hints in metadata.

See http://reviews.llvm.org/D4090 for more details.

The Clang change that produces this metadata was committed in r210667

Patch by Mark Heffernan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/unroll-pragmas.ll [new file with mode: 0644]