Teach LoopUnrollPass to respect loop unrolling hints in metadata.
authorEli Bendersky <eliben@google.com>
Mon, 16 Jun 2014 23:53:02 +0000 (23:53 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 16 Jun 2014 23:53:02 +0000 (23:53 +0000)
commitff9032459976cf309eda7a12a4b9c2deb4fb9d2b
tree6a25fe81a00fe1a95c221225c16b7ec3ab24e801
parent33db9e31e8064b780fba90018061fd42f2b9dc14
Teach LoopUnrollPass to respect loop unrolling hints in metadata.

[This is resubmitting r210721, which was reverted due to suspected breakage
which turned out to be unrelated].

Some extra review comments were addressed. See D4090 and D4147 for more details.

The Clang change that produces this metadata was committed in r210667

Patch by Mark Heffernan.

llvm-svn: 211076
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/test/Transforms/LoopUnroll/unroll-pragmas.ll [new file with mode: 0644]