aco/lower_phis: don't allocate unused temporary ids
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 9 Jun 2021 19:10:51 +0000 (20:10 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Jun 2021 16:48:38 +0000 (16:48 +0000)
commitbc1c527834904825f310d33de4682ce1e36b97a7
tree9d4aeae4202f8984daa54f568ee71a8eb7972b7a
parentecc0353af7a96441b34e6233cd3760f09b38d881
aco/lower_phis: don't allocate unused temporary ids

The excessive number of temporary IDs caused #4872's live-out sets to be
extremely large and expensive to iterate.

With this change, #4872's shader is much faster to compile and uses much
less memory.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4872
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11300>
src/amd/compiler/aco_lower_phis.cpp