aco: use upper part of gap in register file if it is beneficial for striding
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 15 Apr 2020 10:24:39 +0000 (11:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 18:23:23 +0000 (18:23 +0000)
commitd000d76f13e24aae701de0d4ab43bc06c3c9b361
tree42da52187ef2ee24612a04add8582b832501f4fe
parentd666d83be2fa03210f38b06e72410e8d8221b184
aco: use upper part of gap in register file if it is beneficial for striding

Totals from affected shaders:
SGPRS: 1717288 -> 1716984 (-0.02 %)
VGPRS: 1305924 -> 1304904 (-0.08 %)
Code Size: 138508892 -> 138420144 (-0.06 %) bytes
Max Waves: 115726 -> 115735 (0.01 %)

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