aco: Minor optimization in spill_ctx constructor
authorAlbert Astals Cid <aacid@kde.org>
Wed, 26 Feb 2020 21:45:28 +0000 (22:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 2 Mar 2020 12:21:03 +0000 (12:21 +0000)
commit2521c81c9e898b6785cb4fc069c329c42c2990c6
tree629ac55eb987e27ce4d98b03a1c6329b54546b7d
parentd555794f3032594dbef3623052103900138d2356
aco: Minor optimization in spill_ctx constructor

'register_demand' is passed by value and only copied once; consider moving it to avoid unnecessary copies

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3968>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3968>
src/amd/compiler/aco_spill.cpp