aco: fix init_any_pred_defined() for loop header phis
authorDaniel Schürmann <daniel@schuermann.dev>
Thu, 24 Jun 2021 16:11:12 +0000 (18:11 +0200)
committerDaniel Schürmann <daniel@schuermann.dev>
Thu, 2 Sep 2021 14:41:52 +0000 (16:41 +0200)
commite4c5062fb7502777e727b8055d30aa22d9b97b3a
tree9b078888eeef4b072e298b918939358f352d48a8
parent6f56eb24292e11fe7acd43bd37a7c3e3f6b1be36
aco: fix init_any_pred_defined() for loop header phis

This includes setting the correct end point of the propagation and
not propagating the incoming values after the loop header.
This patch also changes the propagation to a single iteration for
loop exit phis.

No fossil-db changes.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
aco: don't propagate incoming value in init_any_pred_defined()

No fossil-db changes.

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