nir: Move phi src setup to a helper.
authorEmma Anholt <emma@anholt.net>
Wed, 7 Jul 2021 20:24:45 +0000 (13:24 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Aug 2021 16:11:57 +0000 (16:11 +0000)
commit673cc9323ac1214dbfa759946c2ffa869ca68962
tree11d2805bb126a504274c8f932a855c2af1f83596
parent636f51c6d1585a9e43a088399bb31c5270669b15
nir: Move phi src setup to a helper.

Cleans up the ralloc/list push code all over the tree.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11772>
15 files changed:
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_control_flow.c
src/compiler/nir/nir_lower_bit_size.c
src/compiler/nir/nir_lower_phis_to_scalar.c
src/compiler/nir/nir_opt_if.c
src/compiler/nir/nir_opt_phi_precision.c
src/compiler/nir/nir_phi_builder.c
src/compiler/nir/nir_serialize.c
src/compiler/nir/nir_to_lcssa.c
src/compiler/nir/tests/lower_returns_tests.cpp
src/compiler/nir/tests/opt_if_tests.cpp
src/microsoft/compiler/dxil_nir.c