glsl2: Move the common optimization passes to a helper function.

These are passes that we expect all codegen to be happy with.  The
other lowering passes for Mesa IR are moved to the Mesa IR generator.
This commit is contained in:
Eric Anholt
2010-08-10 13:06:49 -07:00
parent c55aa4292f
commit 2f4fe15168
4 changed files with 72 additions and 73 deletions

View File

@@ -28,6 +28,8 @@
* Prototypes for optimization passes to be called by the compiler and drivers.
*/
bool do_common_optimization(exec_list *ir, bool linked);
bool do_algebraic(exec_list *instructions);
bool do_constant_folding(exec_list *instructions);
bool do_constant_variable(exec_list *instructions);