mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Fix bug introduced by previous commit: check if fixed intervals
overlap before adding their spill weight. llvm-svn: 10819
This commit is contained in:
parent
725e6a9b77
commit
767111188a
@ -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…
Reference in New Issue
Block a user