LoopUnroll: If we're doing partial unrolling, use the PartialThreshold to limit unrol...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 4 May 2014 19:12:38 +0000 (19:12 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 4 May 2014 19:12:38 +0000 (19:12 +0000)
commit99b03e3401c303f4115258b812e1d96e20f04945
tree784f826d03b612470e83d2b0863d6bd49da53556
parent28a739b4dcd88fc55adc521d2017a831ca7286c9
LoopUnroll: If we're doing partial unrolling, use the PartialThreshold to limit unrolling.

Otherwise we use the same threshold as for complete unrolling, which is
way too high. This made us unroll any loop smaller than 150 instructions
by 8 times, but only if someone specified -march=core2 or better,
which happens to be the default on darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/X86/partial.ll