aco: try to better align 8+ dword SGPR vectors
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 25 Aug 2020 18:10:52 +0000 (19:10 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 11 Jan 2021 16:35:19 +0000 (16:35 +0000)
commitf8c7661ecaa782fdde105a4bf756023eb88ea780
treef40c2533dfdac2a4bc8c50c1cab7dfce234907d6
parenteb2a4a7dee7c84cde44294f991ae731f88d19272
aco: try to better align 8+ dword SGPR vectors

This doesn't have much of an effect, but it helps avoid a
pathological case for Assassin's Creed Valhalla and a RDR2 shader with a
future change.

fossil-db (Sienna):
Totals from 55074 (39.51% of 139391) affected shaders:
SGPRs: 3515076 -> 3567744 (+1.50%); split: -0.01%, +1.51%
CodeSize: 206942120 -> 206941868 (-0.00%); split: -0.00%, +0.00%
Instrs: 39625900 -> 39625837 (-0.00%); split: -0.00%, +0.00%
Cycles: 1640088780 -> 1640088828 (+0.00%); split: -0.00%, +0.00%

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