vc4: Drop destination register when it's unused.
authorEric Anholt <eric@anholt.net>
Wed, 5 Oct 2016 16:21:37 +0000 (09:21 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 7 Oct 2016 01:09:24 +0000 (18:09 -0700)
commit7c7bcbbc7dc7b71e1e3bab69fbcbc8fcbe797cbc
tree14b46448f4e18718e54501c1d28ff9085a24088e
parentd4ae5ca823227214dd1f536e5f4058bede20b2dd
vc4: Drop destination register when it's unused.

This slightly reduces instructions on shader-db, but I think it's just
perturbing register allocation -- the allocator should have always
trivially colored these nodes, before.  This commit is just to make QIR
code failing more intelligible when register allocation fails.
src/gallium/drivers/vc4/vc4_opt_dead_code.c