summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-02-28 20:11:32 -0800
committerMatt Turner <[email protected]>2014-06-19 16:11:51 -0700
commit1d9f74eda75da05b4d5c7df5fc1e6f5ab8d88322 (patch)
treedc9e514f733629846b47eb2ec6c171603f59a885 /src/glsl/ir_optimization.h
parentd300f3f51a5b24e3959889f97a3fbe8cd10ace8e (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/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index c63921c26ce..e99bebbb859 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -71,6 +71,7 @@ bool do_common_optimization(exec_list *ir, bool linked,
const struct gl_shader_compiler_options *options,
bool native_integers);
+bool do_rebalance_tree(exec_list *instructions);
bool do_algebraic(exec_list *instructions, bool native_integers);
bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);