From 8f2214f4892acb994d13531d555196bd8f242dad Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 13 Sep 2010 14:25:26 -0700 Subject: glsl2: Add pass to remove redundant jumps --- src/glsl/glsl_parser_extras.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glsl/glsl_parser_extras.cpp') 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; -- cgit v1.2.3