i965/fs: Take opt_redundant_discard_jumps out of the optimization loop.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 4 May 2016 01:36:02 +0000 (18:36 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 30 May 2016 06:41:38 +0000 (23:41 -0700)
No shader-db regressions.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 6340d3a1a3958dad68676665bf3571bde7a3b9e0..5b75a79957e0de1d518f42afeb5a63c459b07428 100644 (file)
@@ -5700,7 +5700,6 @@ fs_visitor::optimize()
       OPT(opt_peephole_sel);
       OPT(dead_control_flow_eliminate, this);
       OPT(opt_register_renaming);
-      OPT(opt_redundant_discard_jumps);
       OPT(opt_saturate_propagation);
       OPT(register_coalesce);
       OPT(compute_to_mrf);
@@ -5733,9 +5732,9 @@ fs_visitor::optimize()
       OPT(dead_code_eliminate);
       OPT(remove_duplicate_mrf_writes);
       OPT(opt_peephole_sel);
-      OPT(opt_redundant_discard_jumps);
    }
 
+   OPT(opt_redundant_discard_jumps);
    OPT(opt_sampler_eot);
 
    if (OPT(lower_load_payload)) {