aco/ra: create M0-affinities for s_sendmsg
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 27 Apr 2023 15:22:52 +0000 (16:22 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 4 May 2023 19:08:58 +0000 (19:08 +0000)
commitd5398b62da1913e7224c826da0dbd5fa88436f18
tree2b5d21384cfe41fe53cb4d261a49b95efd836e22
parent9dd6fcd9ece4433229181241bdaba9b2d0baa232
aco/ra: create M0-affinities for s_sendmsg

v2 by Timur Kristóf:
Do not add the affinity for instructions that can't write m0
reliably, such as readlane-like instructions on GFX8.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22690>
src/amd/compiler/aco_ir.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_register_allocation.cpp