Mesa (main): broadcom/compiler: wrap nir_convert_to_lcssa with NIR_PASS_V

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 20 12:34:52 UTC 2022


Module: Mesa
Branch: main
Commit: dea0fe8a06649972af9607b19c74984d9de7228e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dea0fe8a06649972af9607b19c74984d9de7228e

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Wed Jul 13 12:53:14 2022 +0200

broadcom/compiler: wrap nir_convert_to_lcssa with NIR_PASS_V

So we get it included with the NIR_DEBUG=print_xx debug options.

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

---

 src/broadcom/compiler/vir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c
index 84489219ac4..2018fb8d305 100644
--- a/src/broadcom/compiler/vir.c
+++ b/src/broadcom/compiler/vir.c
@@ -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);
 



More information about the mesa-commit mailing list