aco/ra: handle copies of copies better
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 23 Jun 2021 14:29:21 +0000 (16:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Jun 2021 16:53:10 +0000 (16:53 +0000)
commitb14bd285f8f48bdb495f9902282ffc0c178fcb70
tree227216b6ee6b06e3e9f29767d2fbe131363e8bbd
parent995e218993767651c128cd89c5f90b6684fb4b50
aco/ra: handle copies of copies better

Instead of adding a second copy, just redirect
the existing copy.

No fossil-db changes.

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