pan/bi: Add and use bi_foreach_ssa_src macro
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 26 Jul 2022 16:22:34 +0000 (12:22 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 16:03:24 +0000 (16:03 +0000)
commit98c69de80d00a88009eac80dee7aee14a30aff3d
tree4ca2dcf496ef3baa84d8b9e66bb89ea1088a9327
parentd3acfd9be825b04921b773e9cc005504a6a40a6a
pan/bi: Add and use bi_foreach_ssa_src macro

Frequently, we want to iterate over the SSA variables read by an instruction,
while skipping over constants and uniforms. Add and use a macro for this
pattern. A few redundant asserts are removed.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
src/panfrost/bifrost/bi_helper_invocations.c
src/panfrost/bifrost/bi_liveness.c
src/panfrost/bifrost/bi_opt_cse.c
src/panfrost/bifrost/bi_opt_dce.c
src/panfrost/bifrost/bi_opt_mod_props.c
src/panfrost/bifrost/bi_pressure_schedule.c
src/panfrost/bifrost/bi_ra.c
src/panfrost/bifrost/bi_validate.c
src/panfrost/bifrost/compiler.h