aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-01-29 15:41:52 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:03 +0200
commitbb9c15bac42cf323ef267095b33031ffc1d4fba4 (patch)
treeaa5aa7a443ce7e38756ce91e7088d8ba014571ac /src/gallium/drivers/nv50
parent4ece0dbd2f595c376dc58252643e67bb63552e88 (diff)
nv50/ir/opt: another insn NULL check in phi elimination
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
index a45d336b435..3bdd5c8533c 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
@@ -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;