nir: make opt_if_loop_terminator() less strict
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 7 Apr 2020 13:33:55 +0000 (23:33 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 8 Apr 2020 01:35:45 +0000 (01:35 +0000)
commit52c8bc0130a2031904f8f4e2187baf2f3f8ff6ec
tree55a6671cddde55c110916cc7fa441005a3ada27a
parent1f649ff10764b2f47fd69013f390e9286547cc3b
nir: make opt_if_loop_terminator() less strict

nir_cf_{extract,reinsert}() can't stitch a block together
if the block we are extracting ends in a jump but other jumps
nested in further ifs should be fine to move.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4477>
src/compiler/nir/nir_opt_if.c