summaryrefslogtreecommitdiff
path: root/src/glsl/ir_constant_folding.cpp
AgeCommit message (Collapse)Author
2010-08-26glsl: Add a quick hack to constant folding to reduce duplicated work.Eric Anholt
Reduces runtime of glsl-max-varyings 92% on my system.
2010-08-23glsl2: Add missing sig_iter.next() to the no-constant-folding-to-outvals fix.Eric Anholt
2010-08-22glsl: Don't constant-fold in a constant in place of a function outval.Eric Anholt
2010-08-22glsl: Convert constant folding to the rvalue visitor.Eric Anholt
This should be mostly a noop, except that a plain dereference of a variable that is not part of a constant expression could now get "constant folded". I expect that for all current backends this will be either a noop, or possibly a win when it provokes more ir_algebraic. It'll also ensure that when new features are added, tree walking will work normally. Before this, constants weren't getting folded inside of loops.
2010-08-04glsl2: Constant fold the children of many more ir_instruction types.Eric Anholt
2010-08-04glsl2: Return a real progress value from constant folding.Eric Anholt
2010-08-04glsl2: Refactor constant folding of rvalues to a function.Eric Anholt
2010-07-20glsl2: Constant-fold assignment conditions.Eric Anholt
2010-06-30glsl2: Define new ir_discard instruction.Kenneth Graunke
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt