summaryrefslogtreecommitdiffstats
path: root/ir_optimization.h
Commit message (Collapse)AuthorAgeFilesLines
* ir_constant_variable: New pass to mark constant-assigned variables constant.Eric Anholt2010-06-011-0/+2
| | | | | | This removes a bunch of gratuitous moving around of constant values from constructors. Makes a shader ir I was looking at for structure handling almost readable.
* ir_swizzle_swizzle: Reduce swizzle chains to a single swizzle.Eric Anholt2010-06-011-0/+1
|
* ir_vec_index_to_swizzle: Pass to convert indexing of vectors to swizzles.Eric Anholt2010-06-011-0/+1
| | | | | This should remove the burden of handling constant vector indexing well from backend codegen, and could help with swizzle optimizations.
* Move optimization pass prototypes to a single header.Eric Anholt2010-05-051-0/+6
|
* ir_dead_code_local: Remove redundant assignments within basic blocks.Eric Anholt2010-05-051-0/+31
This cleans up a bunch of junk code in some of the GLSL parser tests, and could potentially help real-world too (particularly after copy propagation has happened).