Add -unroll-allow-partial command line option that enabled the loop unroller to
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 29 Jul 2008 13:21:23 +0000 (13:21 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 29 Jul 2008 13:21:23 +0000 (13:21 +0000)
commit75cf9cc527c6ef3097dcefab173e93716a5a3e4a
tree9c95bee90db4b4e34d7baf49feb2ac05cafe00d8
parent477f5a2f11a0383b4ecfcb0db2913027ed38ee39
Add -unroll-allow-partial command line option that enabled the loop unroller to
partially unroll a loop when fully unrolling would not fit under the threshold.

Patch by Mikael Lepistö.

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