Re: [Mesa-dev] [PATCH V2] glsl: remove dead code in a single pass

2015-07-12 Thread Timothy Arceri
On Sun, 2015-07-12 at 15:47 +1000, Timothy Arceri wrote: > Currently only one ir assignment is removed for each var in a single > dead code optimisation pass. This means if a var has more than one > assignment, then it requires all the glsl optimisations to be run again > for each additional assign

[Mesa-dev] [PATCH V2] glsl: remove dead code in a single pass

2015-07-11 Thread Timothy Arceri
Currently only one ir assignment is removed for each var in a single dead code optimisation pass. This means if a var has more than one assignment, then it requires all the glsl optimisations to be run again for each additional assignment to be removed. Another pass is also required to remove the v