summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_constant_folding.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Rename various ir_* files to lower_* and opt_*.Kenneth Graunke2010-11-151-147/+0
| | | | | This helps distinguish between lowering passes, optimization passes, and other compiler code.
* glsl: Add a quick hack to constant folding to reduce duplicated work.Eric Anholt2010-08-261-0/+13
| | | | Reduces runtime of glsl-max-varyings 92% on my system.
* glsl2: Add missing sig_iter.next() to the no-constant-folding-to-outvals fix.Eric Anholt2010-08-231-0/+1
|
* glsl: Don't constant-fold in a constant in place of a function outval.Eric Anholt2010-08-221-0/+22
|
* glsl: Convert constant folding to the rvalue visitor.Eric Anholt2010-08-221-181/+19
| | | | | | | | | | 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.
* glsl2: Constant fold the children of many more ir_instruction types.Eric Anholt2010-08-041-7/+32
|
* glsl2: Return a real progress value from constant folding.Eric Anholt2010-08-041-3/+6
|
* glsl2: Refactor constant folding of rvalues to a function.Eric Anholt2010-08-041-26/+21
|
* glsl2: Constant-fold assignment conditions.Eric Anholt2010-07-201-0/+13
|
* glsl2: Define new ir_discard instruction.Kenneth Graunke2010-06-301-0/+8
|
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+229