summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-07-04 10:59:42 -0700
committerEric Anholt <[email protected]>2014-08-08 18:59:47 -0700
commitec9da314baf11bea57f315346091ae941ac4f662 (patch)
treee0870edfe9f658bcf6e53a15f7c21b0640dd6b63 /src/gallium/drivers/vc4/vc4_qir.c
parentd9d1c14430aaeb5b22aa66b269ba288e3df24103 (diff)
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.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 13714115214..71f6e87578d 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -241,6 +241,7 @@ qir_optimize(struct qcompile *c)
bool progress = false;
OPTPASS(qir_opt_algebraic);
+ OPTPASS(qir_opt_copy_propagation);
OPTPASS(qir_opt_dead_code);
if (!progress)