Re: [Mesa-dev] [PATCH 10/15] glsl/standalone: Optimize dead variable declarations

2016-09-26 Thread Tapani Pälli
On 09/16/2016 01:12 AM, Ian Romanick wrote: From: Ian Romanick We didn't bother with this in the regular compiler because it doesn't change the generated code. In the stand-alone compiler, this can clutter the output with useless variables. It's especially bad after functions are inlined bu

[Mesa-dev] [PATCH 10/15] glsl/standalone: Optimize dead variable declarations

2016-09-15 Thread Ian Romanick
From: Ian Romanick We didn't bother with this in the regular compiler because it doesn't change the generated code. In the stand-alone compiler, this can clutter the output with useless variables. It's especially bad after functions are inlined but the foo_retval declarations remain. Signed-of