nir: use a GC context for instructions
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 8 Sep 2021 14:24:10 +0000 (15:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 Aug 2022 18:21:44 +0000 (18:21 +0000)
commitd09b658dbd936822a1517be53450988a4c8ee456
treea9a79c78d8db059164a4097533688602bc89aacc
parent69ba1c4d596a453530553b8b004a157d8c7292d7
nir: use a GC context for instructions

Gives an roughly -15% change in compile-time for RADV/ACO.

Memory usage increase seems to be 5-6%.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5034
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12910>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_control_flow.c
src/compiler/nir/nir_lower_locals_to_regs.c
src/compiler/nir/nir_serialize.c
src/compiler/nir/nir_sweep.c
src/compiler/nir/nir_validate.c