1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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 7b3342d814
commit c6ea9a6b65

View File

@ -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);
}
}
}