diff options
author | Matt Turner <[email protected]> | 2014-02-28 20:11:32 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-19 16:11:51 -0700 |
commit | 1d9f74eda75da05b4d5c7df5fc1e6f5ab8d88322 (patch) | |
tree | dc9e514f733629846b47eb2ec6c171603f59a885 /src/glsl/glsl_parser_extras.cpp | |
parent | d300f3f51a5b24e3959889f97a3fbe8cd10ace8e (diff) |
glsl: Rebalance expression trees that are reduction operations.
The intention of this pass was to give us better instruction scheduling
opportunities, but it unexpectedly reduced some instruction counts as
well:
total instructions in shared programs: 1666639 -> 1666073 (-0.03%)
instructions in affected programs: 54612 -> 54046 (-1.04%)
(and trades 4 SIMD16 programs in SS3)
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index ede9ea2bc59..80f53e3d796 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -1569,6 +1569,7 @@ do_common_optimization(exec_list *ir, bool linked, progress = do_constant_variable_unlinked(ir) || progress; progress = do_constant_folding(ir) || progress; progress = do_cse(ir) || progress; + progress = do_rebalance_tree(ir) || progress; progress = do_algebraic(ir, native_integers) || progress; progress = do_lower_jumps(ir) || progress; progress = do_vec_index_to_swizzle(ir) || progress; |