nv50: don't drop flags definition when merging SAT with ADD/MAD
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 17 Aug 2011 18:38:40 +0000 (20:38 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 17 Aug 2011 18:40:43 +0000 (20:40 +0200)
src/gallium/drivers/nv50/nv50_pc_optimize.c

index d72b23c137a74cd61b32ea0f5acd0266c89c07ee..a1590c2dc6b77c560143f2ea2170b9d2ca49e384 100644 (file)
@@ -462,6 +462,8 @@ nv_pass_lower_mods(struct nv_pass *ctx, struct nv_basic_block *b)
          mi->saturate = 1;
          mi->def[0] = nvi->def[0];
          mi->def[0]->insn = mi;
+         mi->flags_def = nvi->flags_def;
+         mi->flags_def->insn = mi;
          nv_nvi_delete(nvi);
       }
    }