aco: implement 64-bit VGPR constant copies in handle_operands()
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 20 Mar 2020 16:07:08 +0000 (16:07 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 24 Mar 2020 11:28:55 +0000 (11:28 +0000)
commit43918c9a7fc76b56a521d5eea6a8d2b3fb675a15
tree607cdb80339978651b7e96ab0ffb10558945b769
parent21ba2bc595402180fa52d793bb1e524663788338
aco: implement 64-bit VGPR constant copies in handle_operands()

64-bit VGPR constant copies can happen because of 64-bit constant copy
propagation. Since this optimization is beneficial and more annoying to
deal with in the optimizer, I've implemented 64-bit VGPR constant copies
in handle_operands().

This also sets copy_operation::size correctly for 64-bit constant copies.

Cc: 20.0 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4260>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4260>
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_lower_to_hw_instr.cpp