From: Jason Ekstrand Date: Mon, 3 Sep 2018 18:20:54 +0000 (-0500) Subject: intel/compiler: Remove redundant nir_remove_dead_variables call X-Git-Tag: upstream/19.0.0~2785 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67571ae79676c09b36f2e27452ed1d09697791ba;p=platform%2Fupstream%2Fmesa.git intel/compiler: Remove redundant nir_remove_dead_variables call As of 07a2098a708a2, brw_nir_optimize calls nir_remove_dead_variables as the last optimization. Doing it again is just pointless. Reviewed-by: Tapani Pälli --- diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index a906a02..ce865e2 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -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; }