pan/bi: Strengenth assert in the validator
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 26 Jul 2022 16:25:19 +0000 (12:25 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:24 +0000 (16:03 +0000)
We should only see SSA now.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>

src/panfrost/bifrost/bi_validate.c

index 0cab982..807aff1 100644 (file)
@@ -116,7 +116,7 @@ bi_validate_width(bi_context *ctx)
 
         bi_foreach_instr_global(ctx, I) {
                 bi_foreach_dest(I, d) {
-                        if (!bi_is_ssa(I->dest[d])) continue;
+                        assert(bi_is_ssa(I->dest[d]));
 
                         unsigned v = I->dest[d].value;
                         assert(width[v] == 0 && "broken SSA");