summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-09-03 13:20:54 -0500
committerJason Ekstrand <[email protected]>2018-09-04 09:03:16 -0500
commit67571ae79676c09b36f2e27452ed1d09697791ba (patch)
treeac22118566a6917fc61f00b003c1551014025708
parent07a2098a708a2bdba1697cbfeb435533b828d5c4 (diff)
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 <[email protected]>
-rw-r--r--src/intel/compiler/brw_nir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index a906a026042..ce865e2ce71 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;
}