summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-20 21:45:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-20 21:45:16 +0000
commitefc67e78d7ae9eaf657901612843e8b5b7112172 (patch)
tree336df6f341dfcd1e98f2b740680ee228a4aad3f8 /clang/lib/Analysis/GRExprEngine.cpp
parent99ecdd175dc35e05cec0c9a60888c39d18d6897f (diff)
downloadbcm5719-llvm-efc67e78d7ae9eaf657901612843e8b5b7112172.tar.gz
bcm5719-llvm-efc67e78d7ae9eaf657901612843e8b5b7112172.zip
Enhanced heuristic to determine the *best* register to spill. Instead of picking the register with the lowest spill weight. Consider (up to) 2 additional registers with spill weights that are close to the lowest spill weight. The one with fewest defs and uses that conflicts with the current interval (weighted by loop depth) is the spill candidate.
This is not always a win, but there are much more wins than loses and wins tend to be more noticeable. llvm-svn: 52554
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud