mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nv50/ir/ra: Fix traversal before the beginning of the active list in buildRIG.
This commit is contained in:
parent
fe17d8a7c0
commit
ca04e71024
1 changed files with 5 additions and 6 deletions
|
|
@ -1061,16 +1061,15 @@ GCRA::buildRIG(ArrayList& insns)
|
|||
RIG_Node *cur = values.front();
|
||||
|
||||
for (std::list<RIG_Node *>::iterator it = active.begin();
|
||||
it != active.end();
|
||||
++it) {
|
||||
it != active.end();) {
|
||||
RIG_Node *node = *it;
|
||||
|
||||
if (node->livei.end() <= cur->livei.begin()) {
|
||||
it = active.erase(it);
|
||||
--it;
|
||||
} else
|
||||
if (node->f == cur->f && node->livei.overlaps(cur->livei)) {
|
||||
cur->addInterference(node);
|
||||
} else {
|
||||
if (node->f == cur->f && node->livei.overlaps(cur->livei))
|
||||
cur->addInterference(node);
|
||||
++it;
|
||||
}
|
||||
}
|
||||
values.pop_front();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue