aco: Make a better guess at which instructions need the VCC hint.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 7 Jan 2020 09:12:08 +0000 (10:12 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 13:14:23 +0000 (13:14 +0000)
commit23edcf64909c7800c6d52a6bbed9d24945214370
treeb5997e2a4b67a2bf3a49724d467f5dc614d0e682
parent83f24b058731a94b6cdac7b4cf7156c8edcb438f
aco: Make a better guess at which instructions need the VCC hint.

Previously, bool_to_vector_condition would always set the VCC hint
on its result. This commit improves it by having the optimizer set
the VCC hint only when the result really needs to be in the VCC.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3451>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3451>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_optimizer.cpp