Add a separate unrolling threshold when the current function is being optimized for...
authorOwen Anderson <resistor@mac.com>
Tue, 7 Sep 2010 23:15:30 +0000 (23:15 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 7 Sep 2010 23:15:30 +0000 (23:15 +0000)
commite9f1882406e3639de66cb4c01cc5da61a5ac6fae
tree119c8804e56500b601575e8378cd8a9faae7d8c4
parent8c3593658371902e8486fd9a0bb970b5e95a2562
Add a separate unrolling threshold when the current function is being optimized for size.
The threshold value of 50 is arbitrary, and I chose it simply by analogy to the inlining thresholds, where
the baseline unrolling threshold is slightly smaller than the baseline inlining threshold.  This could
undoubtedly use some tuning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp