broadcom/vc5: Remove redundant last_inst lookup.
authorEric Anholt <eric@anholt.net>
Wed, 14 Mar 2018 21:43:15 +0000 (14:43 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Mar 2018 23:42:59 +0000 (16:42 -0700)
The point was to get the MOV, which the MOV_dest already returned.

src/broadcom/compiler/vir.c

index 0b2bbf0e7940b694f4206842bf174813bd1713d6..6a315dd482329265ea77850b04d1fa82b21aedd7 100644 (file)
@@ -900,7 +900,6 @@ vir_PF(struct v3d_compile *c, struct qreg src, enum v3d_qpu_pf pf)
             last_inst != c->defs[src.index]) {
                 /* XXX: Make the MOV be the appropriate type */
                 last_inst = vir_MOV_dest(c, vir_reg(QFILE_NULL, 0), src);
-                last_inst = (struct qinst *)c->cur_block->instructions.prev;
         }
 
         vir_set_pf(last_inst, pf);