aco: skip NIR in unreachable merge blocks
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 31 Jan 2020 16:47:10 +0000 (16:47 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Mar 2020 15:55:12 +0000 (15:55 +0000)
commit46e94fd854e8f209ae662826e1794de4c5da2b80
treed7b6a59f340040ddbbbcffe202360baff8baeeef
parent638cbc21a1c01c87f620edc820e913e48aba2287
aco: skip NIR in unreachable merge blocks

NIR removes most of this but undef instructions for loop header phis can
remain. These were harmless because ACO would DCE them itself.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3658>
src/amd/compiler/aco_instruction_selection.cpp