[Mesa-dev] [PATCH 5/8] i965/vec4: Do CSE, copy propagation, and DCE after opt_vector_float().

Matt Turner mattst88 at gmail.com
Sun Dec 21 15:24:03 PST 2014


total instructions in shared programs: 5869005 -> 5868220 (-0.01%)
instructions in affected programs:     70208 -> 69423 (-1.12%)
---
 src/mesa/drivers/dri/i965/brw_vec4.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index c1aaeea..d36a735 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;
-- 
2.0.4



More information about the mesa-dev mailing list