nv50/ir: only stick one preret per function
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 9 Oct 2016 04:09:54 +0000 (00:09 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 10 Oct 2016 14:45:06 +0000 (10:45 -0400)
commitec05331a7b0d6b6bb84fa6452fbba4bf5dc25f83
tree87984a405226681aa124ed790424a72c30d699aa
parent1f951216266a5f3d824d8b8da4a0cd4328d22d95
nv50/ir: only stick one preret per function

A function with multiple returns would have had multiple preret settings
at the top of the function. While this is unlikely to have caused issues
since we don't use functions in earnest, it could have in some cases
overflowed the call stack, in case a function had a lot of early
returns.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp