glsl2: Use the parser state as the talloc context for dead code elimination.
authorEric Anholt <eric@anholt.net>
Fri, 25 Jun 2010 20:38:38 +0000 (13:38 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 25 Jun 2010 20:38:38 +0000 (13:38 -0700)
commitbda27424cf04c0d2ec2b49c56f562d5b2d2f0bff
treedef596e4d7ba78af3bf590e785d76f9260100802
parentabc4e52992c53ee6b6895480b47e6a6e27ef9bd0
glsl2: Use the parser state as the talloc context for dead code elimination.

This cuts runtime by around 20% from talloc_parent() lookups.
src/glsl/ir_dead_code.cpp
src/glsl/ir_optimization.h
src/glsl/main.cpp
src/mesa/shader/ir_to_mesa.cpp