summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-03-23-DarwinAsmComments.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-23 22:57:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-23 22:57:19 +0000
commit5d088fee7cf20309669f85d2027e2b010b40025b (patch)
tree96a20521982cee8911e88a817d31561ef0d3ba72 /test/CodeGen/X86/2008-03-23-DarwinAsmComments.ll
parent13b9bf9022e4a9f217489273f6128457efd84d34 (diff)
downloadllvm-5d088fee7cf20309669f85d2027e2b010b40025b.tar.gz
llvm-5d088fee7cf20309669f85d2027e2b010b40025b.tar.bz2
llvm-5d088fee7cf20309669f85d2027e2b010b40025b.tar.xz
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 'test/CodeGen/X86/2008-03-23-DarwinAsmComments.ll')
0 files changed, 0 insertions, 0 deletions