aco: fix corner case in register allocation
authorDaniel Schürmann <daniel@schuermann.dev>
Sat, 16 May 2020 16:14:30 +0000 (17:14 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 12:07:40 +0000 (12:07 +0000)
commitae390755fea8b48f63314ecfd2699e1d2c375e76
tree5d6848a7b30fbe64b262a587f50ea94f2a7709ac
parentacec00eae0604dd439a665f2ae8942c16d057853
aco: fix corner case in register allocation

We mark dead operands in the register file when searching for
a register for a definition. Only do so, if this space has not
yet been taken by a different definition.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5070>
src/amd/compiler/aco_register_allocation.cpp