aco: handle phi affinities transitively through parallelcopies
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 13 Jan 2020 14:13:19 +0000 (15:13 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Thu, 16 Jan 2020 15:01:59 +0000 (16:01 +0100)
commit427e5eeb02053745f4f1c7a655058ce3d804c206
tree93b97c2438387e3d4d7b3bb06a0cae936de2ea1e
parentd098024c40ee6bd12804833b71a554380df2d51d
aco: handle phi affinities transitively through parallelcopies

This can coalesce most unnecessarily inserted parallelcopies
from lowering to CSSA.

v2: refactor loop a bit to make it more efficient and readable.

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