nir: Remove register arrays
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 20 Jul 2023 12:21:30 +0000 (08:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 11:25:49 +0000 (11:25 +0000)
commit03b2c34793b62b285627f18753559c1c5f360756
tree5dd9187dfc21474e4e51aa2ed77688f8b65c209f
parent146601418409d31a66e4f98983afd28edc9f8384
nir: Remove register arrays

Nothing produces them any more, so remove them from NIR. This massively reduces
the size of nir_src, which should improve performance all over.

nir_src size reduced from 56 bytes -> 40 bytes (pahole results on arm64, x86_64
should be similar.)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24253>
13 files changed:
src/broadcom/compiler/nir_to_vir.c
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_inline_helpers.h
src/compiler/nir/nir_instr_set.c
src/compiler/nir/nir_lower_vec_to_movs.c
src/compiler/nir/nir_print.c
src/compiler/nir/nir_serialize.c
src/compiler/nir/nir_sweep.c
src/compiler/nir/nir_validate.c
src/gallium/drivers/vc4/vc4_program.c