nv50: fix thinko in store to output reg possible check

This commit is contained in:
Christoph Bumiller
2010-08-16 17:18:30 +02:00
parent e7a0bfa69a
commit 6c5c55723d
+1 -1
View File
@@ -315,7 +315,7 @@ nv_pass_fold_stores(struct nv_pass *ctx, struct nv_basic_block *b)
for (j = 0; j < 4 && nvi->src[j]; ++j)
if (nvi->src[j]->value->reg.file == NV_FILE_IMM)
break;
if (j < 4)
if (j < 4 && nvi->src[j])
continue;
nvi->def[0] = sti->def[0];