aco: ignore parallelcopies to the same register on jump threading
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 14 Jan 2020 12:14:38 +0000 (13:14 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Thu, 16 Jan 2020 15:01:59 +0000 (16:01 +0100)
commit3bca0af25dbf6d6b162463138100abb20bc1a1cc
treeee1fdbf285154f4dace51674a4c50650e1964dbe
parent427e5eeb02053745f4f1c7a655058ce3d804c206
aco: ignore parallelcopies to the same register on jump threading

The more conservative lowering to CSSA inserts unnecessary parallelcopies
which might get coalesced and can be ignored on jump threading.

v2: outline is_empty_block() check.

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