Re: [Mesa-dev] [PATCH 02/59 v2] glsl/standalone: Optimize add-of-neg to subtract

2016-11-10 Thread Nicolai Hähnle
On 27.10.2016 04:17, Ian Romanick wrote: From: Ian Romanick This just makes the output of the standalone compiler a little more compact. v2: Fix indexing typo noticed by Iago. Move the add_neg_to_sub_visitor to it's own header file. Add a unit test that exercises the visitor. Both the neg_a_

Re: [Mesa-dev] [PATCH 02/59 v2] glsl/standalone: Optimize add-of-neg to subtract

2016-11-08 Thread Ian Romanick
ping On 10/26/2016 07:17 PM, Ian Romanick wrote: > From: Ian Romanick > > This just makes the output of the standalone compiler a little more > compact. > > v2: Fix indexing typo noticed by Iago. Move the add_neg_to_sub_visitor > to it's own header file. Add a unit test that exercises the vis

[Mesa-dev] [PATCH 02/59 v2] glsl/standalone: Optimize add-of-neg to subtract

2016-10-26 Thread Ian Romanick
From: Ian Romanick This just makes the output of the standalone compiler a little more compact. v2: Fix indexing typo noticed by Iago. Move the add_neg_to_sub_visitor to it's own header file. Add a unit test that exercises the visitor. Both the neg_a_plus_b and neg_a_plus_neg_b tests reproduce