summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-method.cpp
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
commit7fe1b0f50fc9255e545427693a6a3020aeb3fc37 (patch)
treed4bacea04697020afc15d179f4bee8662ee09e4f /clang/test/SemaTemplate/instantiate-method.cpp
parentf718f0112e339c19472234aac513138671f5cc00 (diff)
downloadbcm5719-llvm-7fe1b0f50fc9255e545427693a6a3020aeb3fc37.tar.gz
bcm5719-llvm-7fe1b0f50fc9255e545427693a6a3020aeb3fc37.zip
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. llvm-svn: 67574
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-method.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud