aco: improve check for unreachable loop continue blocks
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 31 Jan 2020 16:39:20 +0000 (16:39 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 23 Mar 2020 15:55:12 +0000 (15:55 +0000)
commit8d8c864beba399ae4ee2267f680d1f600ad32767
tree72625b264aa08fc6187aa0ea27f7f2f75d1e10ec
parent46e94fd854e8f209ae662826e1794de4c5da2b80
aco: improve check for unreachable loop continue blocks

The old code would have previously caught:
loop {
   ...
   break
}
when it was meant to just catch:
loop {
   if (...)
      break
   else
      break
}

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