aco/ra: fix live-range splits of phi definitions
authorDaniel Schürmann <daniel@schuermann.dev>
Fri, 29 Apr 2022 15:05:10 +0000 (17:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 3 May 2022 09:54:30 +0000 (09:54 +0000)
commit58bd9a379efada22efc3d1ac0848f681c2dd811a
tree63fb2f3cb8eafaea51a22b57083122501dcba394
parentd639608b8bff266f8340105b1a7c50c4f1f605ed
aco/ra: fix live-range splits of phi definitions

It could happen that at the time of a live-range split,
a phi was not yet placed in the new instruction vector,
and thus, instead of renamed, a new phi was created.

Fixes: dEQP-VK.subgroups.ballot_broadcast.compute.subgroupbroadcast_i8vec2
Cc: mesa-stable
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16248>
src/amd/compiler/aco_register_allocation.cpp