diff options
author | Connor Abbott <[email protected]> | 2015-05-01 02:51:12 -0400 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-09-01 01:48:04 -0700 |
commit | 1484d8c9aa2e7e78462ffb5c207394bef77af89b (patch) | |
tree | 13c73a5d9cb59ceeb79ad6ca160610cad4063cab /src/mesa | |
parent | aec6744501be06e37dbcb620eba0deef54fcad31 (diff) |
i965/nir: enable the dead control flow optimization
total instructions in shared programs: 7541551 -> 7541381 (-0.00%)
instructions in affected programs: 3054 -> 2884 (-5.57%)
helped: 29
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c index 247b223f2e2..8f3edc5cf01 100644 --- a/src/mesa/drivers/dri/i965/brw_nir.c +++ b/src/mesa/drivers/dri/i965/brw_nir.c @@ -61,6 +61,8 @@ nir_optimize(nir_shader *nir, bool is_scalar) nir_validate_shader(nir); progress |= nir_opt_constant_folding(nir); nir_validate_shader(nir); + progress |= nir_opt_dead_cf(nir); + nir_validate_shader(nir); progress |= nir_opt_remove_phis(nir); nir_validate_shader(nir); progress |= nir_opt_undef(nir); |