broadcom/compiler: remove one superfluous call to nir_opt_undef

v3d_optimize_nir is calling nir_opt_undef twice. As it is inside the
usual "do {..} while (progress);" loop, is not needed to call it
twice.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26928>
This commit is contained in:
Alejandro Piñeiro 2024-01-08 14:13:13 +01:00
parent a60c52e5f8
commit 54e2e44f99

View file

@ -2105,7 +2105,6 @@ v3d_optimize_nir(struct v3d_compile *c, struct nir_shader *s)
NIR_PASS(progress, s, nir_opt_remove_phis);
NIR_PASS(progress, s, nir_opt_if, false);
NIR_PASS(progress, s, nir_opt_undef);
if (c && !c->disable_gcm) {
bool local_progress = false;
NIR_PASS(local_progress, s, nir_opt_gcm, false);