nir/cf: handle jumps in split_block_end()
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 22 Jul 2015 02:54:25 +0000 (19:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2015 20:31:42 +0000 (13:31 -0700)
commit940873bf22c90db79d065f14ff44dab12415feb0
treee7f49e8ac73b997f24cc3dbc7e8b895dbab526af
parentf596e4021c4c1b2ce95ff32606e2f217955504bd
nir/cf: handle jumps in split_block_end()

Before, we would only split a block with a jump at the end if we were
inserting something after a block with a jump, which never happened in
practice. But now, we want to use this to extract control flow lists
which may end in a jump, in which case we really need to do the correct
patching up. As a side effect, when removing jumps we now correctly
insert undef phi sources in some corner cases, which can't hurt.

Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_control_flow.c