mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Fix overly conservative spill interval computation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a9986f5d8
commit
99d9923608
@ -191,10 +191,9 @@ 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);
|
||||
unsigned start = mop.isUse() ? index : index+1;
|
||||
unsigned end = mop.isDef() ? index+2 : index+1;
|
||||
li.addRange(start, end);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user