summaryrefslogtreecommitdiff
path: root/src/glsl/ir_dead_code.cpp
AgeCommit message (Collapse)Author
2010-08-18glsl2: Fix copy'n'paste hilarity leading to leaking in the refcount visitor.Eric Anholt
2010-08-11glsl2: added casts to silence warningsBrian Paul
2010-08-05glsl2: Don't dead-code eliminate a call where the return value is unused.Eric Anholt
This showed up since the disabling of inlining at compile time, which I apparently didn't regenerate piglit summary for. Fixes: glsl-deadcode-call.
2010-08-05glsl2: Add some easy-to-enable debug printfs to ir_dead_code.cpp.Eric Anholt
2010-08-04glsl2: Remove the shader_in/shader_out tracking separate from var->mode.Eric Anholt
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.
2010-07-31glsl2: Factor out the variable refcounting part of ir_dead_code.cpp.Eric Anholt
2010-07-27glsl2: Fix the linked version of ir_dead_code.Eric Anholt
If we don't walk into functions, we won't see any usage of variables in the functions.
2010-07-27glsl2: Make the dead code handler make its own talloc context.Eric Anholt
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.
2010-07-01glsl2: Remove dead member from dead code visitor.Eric Anholt
2010-06-25glsl2: Use the parser state as the talloc context for dead code elimination.Eric Anholt
This cuts runtime by around 20% from talloc_parent() lookups.
2010-06-24glsl2: Move the compiler to the subdirectory it will live in in Mesa.Eric Anholt