mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Fix bug introduced by previous commit: check if fixed intervals
overlap before adding their spill weight. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f954326741
commit
f7df173e3b
@ -547,6 +547,9 @@ void RA::assignStackSlotAtInterval(IntervalPtrs::value_type cur)
|
||||
// for each fixed interval that overlaps
|
||||
for (IntervalPtrs::const_iterator i = fixed_.begin(), e = fixed_.end();
|
||||
i != e; ++i) {
|
||||
if (!cur->overlaps(**i))
|
||||
continue;
|
||||
|
||||
assert((*i)->reg < MRegisterInfo::FirstVirtualRegister &&
|
||||
"virtual register interval in fixed set?");
|
||||
updateWeight(regWeight, (*i)->reg, (*i)->weight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user