summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-12-20 13:17:00 -0800
committerMatt Turner <[email protected]>2014-12-29 10:08:18 -0800
commitbbdd3198a5f778ba55c037e4af86d88b06ca4e95 (patch)
treeda713820900a2e1a4277e11a01975508cd2f2c25
parent7463e6d61bdd2a3f8cd8b2649d96cb03de1351de (diff)
i965/vec4: Do CSE, copy propagation, and DCE after opt_vector_float().
total instructions in shared programs: 5869005 -> 5868220 (-0.01%) instructions in affected programs: 70208 -> 69423 (-1.12%) Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 4a0f5120c10..296223ccdd0 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -1798,7 +1798,11 @@ vec4_visitor::run()
OPT(opt_register_coalesce);
} while (progress);
- opt_vector_float();
+ if (opt_vector_float()) {
+ opt_cse();
+ opt_copy_propagation();
+ dead_code_eliminate();
+ }
if (failed)
return false;