aco/spill: reload spilled exec masks directly to exec
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 22 Feb 2021 10:00:22 +0000 (11:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 18:40:57 +0000 (18:40 +0000)
commit99936d7142d1eb5ba93f84d1e75c5e0183b5d434
tree823df13fc86f739e87eb34b4d0d3f710a216b058
parentbeb292343a5c79e470add96a88abedbf1133be52
aco/spill: reload spilled exec masks directly to exec

This handles the case of
   exec = p_linear_phi %a, %b
where %a or %b might have been spilled.
By directly reloading these variables into the exec mask register,
we can avoid additional CSSA parallelcopies.

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