glsl: Refactor logic for determining whether to lower return statements.
authorPaul Berry <stereotype441@gmail.com>
Fri, 1 Jul 2011 18:59:32 +0000 (11:59 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 8 Jul 2011 16:59:30 +0000 (09:59 -0700)
commitdbaa2e627effbe1361e1a69c23cf247cf86f2709
treeaec17f3f1798dc5737cce786e964760c39f85986
parente2c748aec5363981a05f21f26a0c4d37ccf6419d
glsl: Refactor logic for determining whether to lower return statements.

Previously, do_lower_jumps.cpp determined whether to lower return
statements in ir_lower_jumps_visitor::should_lower_jumps().  Moved
this logic to ir_lower_jumps_visitor::visit(ir_function_signature *),
so that it can be used in determining whether to lower a return
statement at the end of a function.
src/glsl/lower_jumps.cpp