forked from OSchip/llvm-project
Fix spilled interval update. It was too conservative.
llvm-svn: 11516
This commit is contained in:
parent
ddedac59fe
commit
4f7c2d9e5e
|
@ -191,7 +191,10 @@ void LiveIntervals::updateSpilledInterval(Interval& li)
|
|||
if (mop.isRegister()) {
|
||||
unsigned reg = mop.getReg();
|
||||
if (rep(reg) == li.reg) {
|
||||
li.addRange(index, index + 2);
|
||||
if (mop.isUse())
|
||||
li.addRange(index, index+2);
|
||||
else
|
||||
li.addRange(index+1, index+2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue