glsl2: Add optimization pass for algebraic simplifications.

This cleans up the assembly output of almost all the non-logic tests
glsl-algebraic-*.  glsl-algebraic-pow-two needs love (basically,
flattening to a temporary and squaring it).
This commit is contained in:
Eric Anholt
2010-07-26 22:50:29 -07:00
parent 5533c6e380
commit 832aad989e
6 changed files with 379 additions and 1 deletions

View File

@@ -23,11 +23,12 @@
/**
* \file ir_dead_code.h
* \file ir_optimization.h
*
* Prototypes for optimization passes to be called by the compiler and drivers.
*/
bool do_algebraic(exec_list *instructions);
bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);
bool do_constant_variable_unlinked(exec_list *instructions);