vc4: Move SF removal to a separate peephole pass.
authorEric Anholt <eric@anholt.net>
Fri, 3 Jun 2016 21:36:04 +0000 (14:36 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 4 Jul 2016 23:33:22 +0000 (16:33 -0700)
commit200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba
tree0b962b15999588d421df9bf40a52857bc1cfc8a2
parentaa76ba6f2fb0d6438b2b652d9fa466b6cf77fa31
vc4: Move SF removal to a separate peephole pass.

The DCE pass is going to change significantly to handle control flow,
while we don't really need to change it for the SF handling.  We also need
to add some more SF peephole optimization for SF updates generated by
control flow support.

No change on shader-db.
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_opt_dead_code.c
src/gallium/drivers/vc4/vc4_opt_peephole_sf.c [new file with mode: 0644]
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h