broadcom/compiler: wrap nir_convert_to_lcssa with NIR_PASS_V
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 13 Jul 2022 10:53:14 +0000 (12:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Jul 2022 11:35:24 +0000 (11:35 +0000)
So we get it included with the NIR_DEBUG=print_xx debug options.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17609>

src/broadcom/compiler/vir.c

index 8448921..2018fb8 100644 (file)
@@ -1604,7 +1604,7 @@ v3d_attempt_compile(struct v3d_compile *c)
         }
 
         NIR_PASS_V(c->s, nir_lower_bool_to_int32);
-        nir_convert_to_lcssa(c->s, true, true);
+        NIR_PASS_V(c->s, nir_convert_to_lcssa, true, true);
         NIR_PASS_V(c->s, nir_divergence_analysis);
         NIR_PASS_V(c->s, nir_convert_from_ssa, true);