diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-02 11:27:06 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-02 11:27:06 -0700 |
commit | 9a0e421983edc31371440c08687fa2bb2207924d (patch) | |
tree | 95b2cab4e5f98cb61c5e4a8075186289f8526f08 /src/glsl/ir_optimization.h | |
parent | 667f4e1940c4c4660e35dc9906672a476369660f (diff) |
glsl2: Add a pass to break ir_binop_div to _mul and _rcp.
This results in constant folding of a constant divisor.
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index 1a8b740566b..6d02e591c3d 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -37,6 +37,7 @@ bool do_dead_code(struct _mesa_glsl_parse_state *state, bool do_dead_code_local(exec_list *instructions); bool do_dead_code_unlinked(struct _mesa_glsl_parse_state *state, exec_list *instructions); +bool do_div_to_mul_rcp(exec_list *instructions); bool do_function_inlining(exec_list *instructions); bool do_if_simplification(exec_list *instructions); bool do_mod_to_fract(exec_list *instructions); |