Fix spilled interval update. It was too conservative.

llvm-svn: 11516
This commit is contained in:
Alkis Evlogimenos 2004-02-17 04:04:20 +00:00
parent ddedac59fe
commit 4f7c2d9e5e
1 changed files with 4 additions and 1 deletions

View File

@ -191,7 +191,10 @@ void LiveIntervals::updateSpilledInterval(Interval& li)
if (mop.isRegister()) {
unsigned reg = mop.getReg();
if (rep(reg) == li.reg) {
if (mop.isUse())
li.addRange(index, index+2);
else
li.addRange(index+1, index+2);
}
}
}