From: Eric Anholt Date: Wed, 14 Mar 2018 21:43:15 +0000 (-0700) Subject: broadcom/vc5: Remove redundant last_inst lookup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=271fc58ba1b9e6a0245c7ab262834705f2e20372;p=mesa.git broadcom/vc5: Remove redundant last_inst lookup. The point was to get the MOV, which the MOV_dest already returned. --- diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 0b2bbf0e794..6a315dd4823 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -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);