aco: refactor get_reg_simple() to return early on exact matches
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 14 Apr 2020 10:43:39 +0000 (11:43 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Apr 2020 18:23:23 +0000 (18:23 +0000)
commit2796cb4c2481c35b9510c03dad3a5ebe65a82d51
tree04d35816bda4ec5320a7098f59c1047dc1cbec79
parent6792e134f37323d8b56a60b4620e782fc0d673dd
aco: refactor get_reg_simple() to return early on exact matches

in the best fit algorithm

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