Commit 703cabc0 authored by Timothy Arceri's avatar Timothy Arceri

anv/i965: Use GCM in nir_optimize

There is still some work to do before we can enable GVN.

Shader-db results (SKL):

total instructions in shared programs: 15431672 -> 15431244 (<.01%)
instructions in affected programs: 102448 -> 102020 (-0.42%)
helped: 84
HURT: 0

total cycles in shared programs: 358608349 -> 358465942 (-0.04%)
cycles in affected programs: 1411090 -> 1268683 (-10.09%)
helped: 89
HURT: 2
parent fd253a3e
Pipeline #60687 passed with stages
in 13 minutes and 57 seconds
......@@ -590,6 +590,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
OPT(nir_opt_loop_unroll, indirect_mask);
}
OPT(nir_opt_remove_phis);
OPT(nir_opt_gcm, false);
OPT(nir_opt_undef);
OPT(nir_lower_pack);
} while (progress);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment