intel/compiler: Remove redundant nir_remove_dead_variables call

As of 07a2098a70, brw_nir_optimize calls nir_remove_dead_variables as
the last optimization.  Doing it again is just pointless.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Jason Ekstrand
2018-09-03 13:20:54 -05:00
parent 07a2098a70
commit 67571ae796
-2
View File
@@ -715,8 +715,6 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir)
/* Get rid of split copies */
nir = brw_nir_optimize(nir, compiler, is_scalar, false);
OPT(nir_remove_dead_variables, nir_var_local);
return nir;
}