summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_function_inlining.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-04-22 14:02:00 -0700
committerPaul Berry <[email protected]>2013-04-24 09:57:37 -0700
commit5bb90cfceb6d6eaed88d4ffa0c5d953d8609e98c (patch)
tree7ea66143510fcb25b816fd7997283e40bef5ef16 /src/glsl/opt_function_inlining.cpp
parent70ca263623bdeba6a8ff3b306d4206927cf8c33f (diff)
glsl: Teach basic block analysis about break/continue/discard.
Previously, the only kind of ir_jump that would terminate a basic block was "return". However, the other possible types of ir_jump ("break", "continue", and "discard") should terminate a basic block too. This patch modifies basic block analysis so that it terminates a basic block on any type of ir_jump, not just ir_return. Fixes piglit test dead-code-break-interaction.shader_test. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/opt_function_inlining.cpp')
0 files changed, 0 insertions, 0 deletions