aco/optimizer_postRA: Fix logical control flow handling.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 8 Sep 2022 10:55:31 +0000 (12:55 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 21 Sep 2022 16:56:57 +0000 (16:56 +0000)
commita8dd07518c59af0087ed311cee232c31c3e8268c
tree1e7afe90befebf2353cca57ffcd8c034ca52dbf3
parent2eab413cf7964bea3026f43f3c3a12323c281a9c
aco/optimizer_postRA: Fix logical control flow handling.

Change reset_block() so it only considers the logical
predecessors for VGPRs. Relevant for some optimizations
across loops.

This commit fixes an assertion failure which was triggered
by Zink in a piglit test.

Fossil DB stats unaffected on Navi 21.

Fixes: 2e56e2342094e8ec90afa5265b1c43503f662939
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18488>
src/amd/compiler/aco_optimizer_postRA.cpp
src/amd/compiler/tests/test_optimizer_postRA.cpp