Revert "radv: move nir_opt_copy_prop_vars out of optimization loop"

This reverts commit 36b0fdb7b7.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38624>
This commit is contained in:
Daniel Schürmann
2025-11-24 08:52:17 +01:00
committed by Marge Bot
parent d1754af4cd
commit 7db497c096
+1 -1
View File
@@ -172,6 +172,7 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively)
NIR_LOOP_PASS(progress, skip, shader, nir_split_array_vars, nir_var_function_temp);
NIR_LOOP_PASS(progress, skip, shader, nir_shrink_vec_array_vars, nir_var_function_temp | nir_var_mem_shared);
NIR_LOOP_PASS(progress, skip, shader, nir_opt_copy_prop_vars);
NIR_LOOP_PASS(_, skip, shader, nir_lower_phis_to_scalar, ac_nir_lower_phis_to_scalar_cb, NULL);
NIR_LOOP_PASS(progress, skip, shader, nir_opt_copy_prop);
@@ -732,7 +733,6 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
radv_optimize_nir(nir, false);
NIR_PASS(_, nir, nir_opt_copy_prop_vars);
NIR_PASS(_, nir, nir_opt_dead_write_vars);
NIR_PASS(_, nir, nir_opt_memcpy);
}