pan/bi: Use a dynarray for predecessors
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 19 Apr 2022 22:58:27 +0000 (18:58 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 May 2022 17:56:16 +0000 (17:56 +0000)
commit80f8e9da162ba50206c94b7915548f96cdd1ad51
tree9881d2156adf1f20e3a810abb20878e2d2fa1067
parent37f60a66e88f8f139b96c7b0f63949fea9c39794
pan/bi: Use a dynarray for predecessors

This is deterministic, unlike a set. Note we need the extra dereferencing to
keep the macro safe, simple, and standards compliant:

1. Nesting two for-loops would cause break/continue to fail.
2. Declaring variables outside the loop would pollute the namespace.
3. Declaring an anonymous struct is not conformant and doesn't compile in clang.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16279>
src/panfrost/bifrost/bi_helper_invocations.c
src/panfrost/bifrost/bi_liveness.c
src/panfrost/bifrost/bi_opt_dce.c
src/panfrost/bifrost/bi_print.c
src/panfrost/bifrost/bi_scoreboard.c
src/panfrost/bifrost/bi_test.h
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/bir.c
src/panfrost/bifrost/compiler.h