nv50/ir: deal with loops with no breaks
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 2 Dec 2015 05:38:21 +0000 (00:38 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 2 Dec 2015 23:51:15 +0000 (18:51 -0500)
commitadcc547bfbef362067bb3b4e3aee75b287bc6189
treef8d73daa1b17fa6100a1e7e9ee7682533c7ed2ba
parentff61ac48387d3f42ede50a572c11f404f4cd3abb
nv50/ir: deal with loops with no breaks

For example if there are only returns, the break bb will not end up part
of the CFG. However there will have been a prebreak already emitted for
it, and when hitting the RET that comes after, we will try to insert the
current (i.e. break) BB into the graph even though it will be
unreachable. This makes the SSA code sad.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp