diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-06-20 21:45:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-06-20 21:45:16 +0000 |
commit | 3e172254c136ce8170f17ad01f0706bd6e2e0505 (patch) | |
tree | a2d35328b5561b8c4e684a754afbb69e921a7097 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 4eaac9b181d5a32e6c9135f7af00861b9fb88240 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions