mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 22:30:11 +01:00
nv50/ir/opt: another insn NULL check in phi elimination
This commit is contained in:
parent
4ece0dbd2f
commit
bb9c15bac4
1 changed files with 2 additions and 0 deletions
|
|
@ -2020,6 +2020,8 @@ GlobalCSE::visit(BasicBlock *bb)
|
|||
if (phi->getSrc(0)->refCount() > 1)
|
||||
continue;
|
||||
ik = phi->getSrc(0)->getInsn();
|
||||
if (!ik)
|
||||
continue; // probably a function input
|
||||
for (s = 1; phi->srcExists(s); ++s) {
|
||||
if (phi->getSrc(s)->refCount() > 1)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue