panfrost/midgard: Only copyprop without an outmod

With an outmod, we would need to propagate that through, which is for
future work.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig 2019-04-27 23:49:52 +00:00
parent a3d6a3dfc4
commit bdaa23b32b
1 changed files with 1 additions and 0 deletions

View File

@ -3165,6 +3165,7 @@ midgard_opt_copy_prop(compiler_context *ctx, midgard_block *block)
bool is_int = midgard_is_integer_op(ins->alu.op);
if (mir_nontrivial_mod(src, is_int, mask)) continue;
if (ins->alu.outmod != midgard_outmod_none) continue;
mir_foreach_instr_in_block_from(block, v, mir_next_op(ins)) {
if (v->ssa_args.src0 == to) {