radv: Only call nir_opt_dead_write_vars once
Totals from 2 (0.00% of 79839) affected shaders: (Navi48) Instrs: 5540 -> 5524 (-0.29%) CodeSize: 27536 -> 27424 (-0.41%) Latency: 37602 -> 37526 (-0.20%) InvThroughput: 9401 -> 9382 (-0.20%) Copies: 839 -> 845 (+0.72%); split: -0.12%, +0.83% Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38367>
This commit is contained in:
committed by
Marge Bot
parent
c3b72ea00c
commit
bf0e04a531
@@ -180,7 +180,6 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively)
|
||||
}
|
||||
|
||||
NIR_LOOP_PASS(progress, skip, shader, nir_opt_copy_prop_vars);
|
||||
NIR_LOOP_PASS(progress, skip, shader, nir_opt_dead_write_vars);
|
||||
NIR_LOOP_PASS(_, skip, shader, nir_lower_vars_to_ssa);
|
||||
|
||||
NIR_LOOP_PASS(_, skip, shader, nir_lower_alu_width, vectorize_vec2_16bit, NULL);
|
||||
@@ -727,6 +726,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
|
||||
if (!stage->key.optimisations_disabled) {
|
||||
radv_optimize_nir(nir, false);
|
||||
|
||||
NIR_PASS(_, nir, nir_opt_dead_write_vars);
|
||||
NIR_PASS(_, nir, nir_opt_memcpy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user