diff options
author | Ian Romanick <[email protected]> | 2010-09-13 14:25:26 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-13 14:25:26 -0700 |
commit | 8f2214f4892acb994d13531d555196bd8f242dad (patch) | |
tree | 6e84998ec3977c1791ba1765660345b61c2b93f9 /src/glsl/glsl_parser_extras.cpp | |
parent | e79a1bb02a0ce3c265c4a64c117018a9207064c9 (diff) |
glsl2: Add pass to remove redundant jumps
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 28241f7dd3f..4ac062b42c1 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -716,6 +716,8 @@ do_common_optimization(exec_list *ir, bool linked, unsigned max_unroll_iteration progress = do_swizzle_swizzle(ir) || progress; progress = do_noop_swizzle(ir) || progress; + progress = optimize_redundant_jumps(ir) || progress; + loop_state *ls = analyze_loop_variables(ir); progress = set_loop_controls(ir, ls) || progress; progress = unroll_loops(ir, ls, max_unroll_iterations) || progress; |