mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nv50/ir/opt: don't delete instruction in removeFlow before its last use
This commit is contained in:
parent
be161e66d6
commit
d41f293bf0
1 changed files with 2 additions and 2 deletions
|
|
@ -1737,10 +1737,10 @@ FlatteningPass::removeFlow(Instruction *insn)
|
||||||
if (term->op != OP_JOIN)
|
if (term->op != OP_JOIN)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
delete_Instruction(prog, term);
|
|
||||||
|
|
||||||
Value *pred = term->getPredicate();
|
Value *pred = term->getPredicate();
|
||||||
|
|
||||||
|
delete_Instruction(prog, term);
|
||||||
|
|
||||||
if (pred && pred->refCount() == 0) {
|
if (pred && pred->refCount() == 0) {
|
||||||
Instruction *pSet = pred->getUniqueInsn();
|
Instruction *pSet = pred->getUniqueInsn();
|
||||||
pred->join->reg.data.id = -1; // deallocate
|
pred->join->reg.data.id = -1; // deallocate
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue