[Mesa-dev] [PATCH] i965/vec4: Detect and delete useless MOVs.

Kenneth Graunke kenneth at whitecape.org
Mon Sep 21 17:57:16 PDT 2015


On Monday, September 21, 2015 02:27:00 PM Matt Turner wrote:
[snip]
> Yeah, the block immediately above handles conditions like this:
> 
> if (inst->opcode != BRW_OPCODE_MOV ||
>     (inst->dst.file != GRF && inst->dst.file != MRF) ||
>     inst->predicate ||
>     inst->src[0].file != GRF ||
>     inst->dst.type != inst->src[0].type ||
>     inst->src[0].abs || inst->src[0].negate || inst->src[0].reladdr)
>    continue;

D'oh, thanks.  I was thinking copy propagation for some reason...

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150921/f78d725f/attachment.sig>


More information about the mesa-dev mailing list