aco: refactor try_remove_trivial_phi() in RA
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 11 Mar 2020 07:38:48 +0000 (08:38 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Apr 2020 15:08:57 +0000 (15:08 +0000)
commit69b6069dd288455cdb2655284c592a85d17df273
treeb692632df1ff42bf4806c30f08cbfb201786fdbb
parentb66f474121db89ea611cbcdf07a45168481d2590
aco: refactor try_remove_trivial_phi() in RA

Minor refactoring to avoid some pointer chasing.
This patch also changes the live_out argument to be
passed by reference to avoid an unnecessary copy.

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