diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-23 22:57:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-23 22:57:19 +0000 |
commit | 5d088fee7cf20309669f85d2027e2b010b40025b (patch) | |
tree | 96a20521982cee8911e88a817d31561ef0d3ba72 /lib/CodeGen/LiveVariables.cpp | |
parent | 13b9bf9022e4a9f217489273f6128457efd84d34 (diff) |
Fix a bug in spill weight computation. If the alias is a super-register, and the super-register is in the register class we are trying to allocate. Then add the weight to all sub-registers of the super-register even if they are not aliases.
e.g. allocating for GR32, bh is not used, updating bl spill weight.
bl should get the same spill weight otherwise it will be choosen
as a spill candidate since spilling bh doesn't make ebx available.
This fix PR2866.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions