OSDN Git Service

i965/fs: Call opt_peephole_sel later in the optimization loop.
authorMatt Turner <mattst88@gmail.com>
Mon, 16 Dec 2013 04:07:05 +0000 (20:07 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 21 Jan 2014 22:09:33 +0000 (14:09 -0800)
Calling it after value numbering (added in the next commit) prevents
some instruction count regressions.

total instructions in shared programs: 1524387 -> 1523905 (-0.03%)
instructions in affected programs:     13112 -> 12630 (-3.68%)
GAINED:                                0
LOST:                                  3

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index b00e2b5..f8ae434 100644 (file)
@@ -3306,10 +3306,10 @@ fs_visitor::run()
         progress = opt_algebraic() || progress;
         progress = opt_cse() || progress;
         progress = opt_copy_propagate() || progress;
-         progress = opt_peephole_sel() || progress;
          progress = opt_peephole_predicated_break() || progress;
         progress = dead_code_eliminate() || progress;
         progress = dead_code_eliminate_local() || progress;
+         progress = opt_peephole_sel() || progress;
          progress = dead_control_flow_eliminate(this) || progress;
          progress = register_coalesce() || progress;
         progress = compute_to_mrf() || progress;