aco: move attempt to find strided register into get_reg_simple()
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 13 Apr 2020 12:16:00 +0000 (13:16 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 18:23:23 +0000 (18:23 +0000)
commit97a870cf88a551cca9a1fd0773d183cddc4b2561
tree033e67d898ab6f7e8ced8467e1aa2c956de08a6d
parentc7f97f110c4c42bac54fd37a15e265669c8a2ab8
aco: move attempt to find strided register into get_reg_simple()

This simplifies code and helps some shaders

Totals from affected shaders:
Code Size: 51227172 -> 51202216 (-0.05 %) bytes
Max Waves: 19955 -> 19948 (-0.04 %)

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