vc4: Add copy propagation between temps.
authorEric Anholt <eric@anholt.net>
Fri, 4 Jul 2014 17:59:42 +0000 (10:59 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 9 Aug 2014 01:59:47 +0000 (18:59 -0700)
commitec9da314baf11bea57f315346091ae941ac4f662
treee0870edfe9f658bcf6e53a15f7c21b0640dd6b63
parentd9d1c14430aaeb5b22aa66b269ba288e3df24103
vc4: Add copy propagation between temps.

We put in a bunch of extra MOVs for program outputs, and this can clean
those up.  We should do uniforms, too, though.

v2: Fix missing flagging of progress when we actually optimize.  Caught by
    Aaron Watry.
src/gallium/drivers/vc4/Makefile.sources
src/gallium/drivers/vc4/vc4_opt_copy_propagation.c [new file with mode: 0644]
src/gallium/drivers/vc4/vc4_qir.c
src/gallium/drivers/vc4/vc4_qir.h