aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_dead_code.cpp
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Don't dead-code eliminate a uniform initializer.Eric Anholt2010-08-241-0/+8
| | | | Partial fix for glsl-uniform-initializer-5.
* glsl2: Fix copy'n'paste hilarity leading to leaking in the refcount visitor.Eric Anholt2010-08-181-1/+0
|
* glsl2: added casts to silence warningsBrian Paul2010-08-111-3/+3
|
* glsl2: Don't dead-code eliminate a call where the return value is unused.Eric Anholt2010-08-051-1/+2
| | | | | | | | This showed up since the disabling of inlining at compile time, which I apparently didn't regenerate piglit summary for. Fixes: glsl-deadcode-call.
* glsl2: Add some easy-to-enable debug printfs to ir_dead_code.cpp.Eric Anholt2010-08-051-0/+19
|
* glsl2: Remove the shader_in/shader_out tracking separate from var->mode.Eric Anholt2010-08-041-1/+2
| | | | | | | | | | | | | | | I introduced this for ir_dead_code to distinguish function parameter outvals from varying outputs. Only, since ast_to_hir's current_function is unset when setting up function parameters (they're needed for making the function signature in the first place), all function parameter outvals were marked as shader outputs anyway. This meant that an inlined function's cloned outval was marked as a shader output and couldn't be dead-code eliminated. Instead, since ir_dead_code doesn't even look at function parameters, just use var->mode. The longest Mesa IR coming out of ir_to_mesa for Yo Frankie drops from 725 instructions to 636.
* glsl2: Factor out the variable refcounting part of ir_dead_code.cpp.Eric Anholt2010-07-311-112/+2
|
* glsl2: Fix the linked version of ir_dead_code.Eric Anholt2010-07-271-3/+6
| | | | | If we don't walk into functions, we won't see any usage of variables in the functions.
* glsl2: Make the dead code handler make its own talloc context.Eric Anholt2010-07-271-6/+6
| | | | | This way, we don't need to pass in a parse state, and the context doesn't grow with the number of passes through optimization.
* glsl2: Remove dead member from dead code visitor.Eric Anholt2010-07-011-1/+0
|
* glsl2: Use the parser state as the talloc context for dead code elimination.Eric Anholt2010-06-251-6/+9
| | | | This cuts runtime by around 20% from talloc_parent() lookups.
* glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt2010-06-241-0/+219