vc4: DCE instructions with a NULL destination.
authorEric Anholt <eric@anholt.net>
Fri, 3 Jun 2016 22:06:52 +0000 (15:06 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 4 Jul 2016 23:33:22 +0000 (16:33 -0700)
commitaa76ba6f2fb0d6438b2b652d9fa466b6cf77fa31
tree91fff3be56248c36da2e80134fed1bd9866cc2c4
parent2a8973fb78026b830786aa74b07805730ae891ca
vc4: DCE instructions with a NULL destination.

I'm going to add an optimization for redundant SF update removal, which
will just remove the SF and leave us (in many cases) with an instruction
with a NULL destination and no side effects.  Rather than teaching that
pass whether the whole instruction can be removed, leave that
responsibility to this pass.
src/gallium/drivers/vc4/vc4_opt_dead_code.c