intel/nir: Combine store_derefs to improve code from SPIR-V
[mesa.git] / src / intel / compiler / brw_nir.c
index 1b99a3b23168deb150905e6cc3a444cdd1580810..5734987a964a97588c7efa8663ced2c332fd67f8 100644 (file)
@@ -570,6 +570,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
       OPT(nir_copy_prop);
       OPT(nir_opt_dce);
       OPT(nir_opt_cse);
+      OPT(nir_opt_combine_stores, nir_var_all);
 
       /* Passing 0 to the peephole select pass causes it to convert
        * if-statements that contain only move instructions in the branches