OSDN Git Service

i965/vec4: Do CSE, copy propagation, and DCE after opt_vector_float().
authorMatt Turner <mattst88@gmail.com>
Sat, 20 Dec 2014 21:17:00 +0000 (13:17 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 29 Dec 2014 18:08:18 +0000 (10:08 -0800)
total instructions in shared programs: 5869005 -> 5868220 (-0.01%)
instructions in affected programs:     70208 -> 69423 (-1.12%)

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 4a0f512..296223c 100644 (file)
@@ -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;