aco: fill reg_demand with sensible information in add_coupling_code()
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 20 Jan 2020 15:57:21 +0000 (15:57 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jan 2020 18:02:27 +0000 (18:02 +0000)
commit517fc3abc44734d56c6aec96cd95b1404cc64695
treee5a7c2fb354e1a6809930afabe2a671f857b8023
parent26d2511bcbf1f0e3affe85d42d54b4970c78a7ba
aco: fill reg_demand with sensible information in add_coupling_code()

process_block() will use this to determine the register demand of the
before the current instruction. Previously, it was filled with zeroes
which could result in process_block() only using the register demand
of after the current instruction.

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