aco/ra: Avoid redundant RegisterFile copies in get_reg_impl
authorTony Wasserka <tony.wasserka@gmx.de>
Tue, 29 Dec 2020 16:29:41 +0000 (17:29 +0100)
committerTony Wasserka <tony.wasserka@gmx.de>
Wed, 30 Dec 2020 16:36:33 +0000 (17:36 +0100)
commit9d59c84e318aa97fe5f0c73d55f555614b1128e1
treeb65e8267fe07239206b0cf29de3031117ff0af1b
parent2f5f542460b7e3d2ac5bbb4482c10f23a4de2f35
aco/ra: Avoid redundant RegisterFile copies in get_reg_impl

Now that this function does not block RegisterFile entries anymore,
the temporary copy is only needed upon reaching the collect_vars call.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8261>
src/amd/compiler/aco_register_allocation.cpp