mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix spilled interval update. It was too conservative.
llvm-svn: 11516
This commit is contained in:
parent
7b3342d814
commit
c6ea9a6b65
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user