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

2015-07-12 Thread Timothy Arceri
On Sun, 2015-07-12 at 13:38 +0200, Thomas Helland wrote: > 2015-07-12 1:17 GMT+02:00 Timothy Arceri : > > snip > > > Hi Timothy, > > Just gave your patch a whirl through my shader-db. > Three runs on master and three runs with your path seems > to cut my shader-db run from aprox 117 secs to 112.

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

2015-07-12 Thread Thomas Helland
2015-07-12 1:17 GMT+02:00 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 rem

[Mesa-dev] [PATCH] 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