glsl2: Add optimization pass for algebraic simplifications.
authorEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 05:50:29 +0000 (22:50 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 16:43:52 +0000 (09:43 -0700)
commit832aad989e3d319a8aaac046aa49df25da134d82
treea0646404b655dbaac4ef112074ad985d02b4dea7
parent5533c6e38030ff6e26375a1a4e4bfa9ab2204d4c
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).
src/glsl/Makefile
src/glsl/ir.h
src/glsl/ir_algebraic.cpp [new file with mode: 0644]
src/glsl/ir_optimization.h
src/glsl/main.cpp
src/mesa/program/ir_to_mesa.cpp