nv50/ir/opt: another insn NULL check in phi elimination

This commit is contained in:
Christoph Bumiller 2012-01-29 15:41:52 +01:00
parent 4ece0dbd2f
commit bb9c15bac4
1 changed files with 2 additions and 0 deletions

View File

@ -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;