summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-18 21:33:05 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-18 21:33:05 +0000
commitc953acbd7f611dbbdcbdf8d1b98db9834ae8dfd6 (patch)
treef17a6a2dd2641986d73e1c5668dae8f9f1ec1502 /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
parent334ce7c1c4075fc3579ab1e3b9e76296b0da53ed (diff)
downloadbcm5719-llvm-c953acbd7f611dbbdcbdf8d1b98db9834ae8dfd6.tar.gz
bcm5719-llvm-c953acbd7f611dbbdcbdf8d1b98db9834ae8dfd6.zip
Always normalize spill weights, also for intervals created by spilling.
Moderate the weight given to very small intervals. The spill weight given to new intervals created when spilling was not normalized in the same way as the original spill weights calculated by CalcSpillWeights. That meant that restored registers would tend to hang around because they had a much higher spill weight that unspilled registers. This improves the runtime of a few tests by up to 10%, and there are no significant regressions. llvm-svn: 96613
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud