vc4: Add a CSE optimization pass.
authorEric Anholt <eric@anholt.net>
Mon, 25 Aug 2014 07:12:21 +0000 (00:12 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 4 Sep 2014 18:39:51 +0000 (11:39 -0700)
commit55d2a1626219ac041ce05477827b592efa1c7b81
tree8cd77b31a7e725ff3fd34933dfd481246d5955ad
parent80b27ca2cd8cd2bb2937baa441c43a396887cc03
vc4: Add a CSE optimization pass.

Debugging a regression in discard support was just too full of duplicate
instructions, so I decided to remove them instead of re-analyzing each of
them as I dumped their outputs in simulation.
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_opt_cse.c [new file with mode: 0644]
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h