Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-23 Thread Juha-Pekka Heikkila
On 22.04.2015 20:14, Matt Turner wrote: > On Fri, Apr 17, 2015 at 1:56 PM, Matt Turner wrote: >> Updated numbers look a lot better! >> >> On Tue, Mar 17, 2015 at 4:23 PM, Matt Turner wrote: >>> Without NIR: >>> >>> total instructions in shared programs: 6190374 -> 6190153 (-0.00%) >>> instruction

Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-22 Thread Matt Turner
On Fri, Apr 17, 2015 at 1:56 PM, Matt Turner wrote: > Updated numbers look a lot better! > > On Tue, Mar 17, 2015 at 4:23 PM, Matt Turner wrote: >> Without NIR: >> >> total instructions in shared programs: 6190374 -> 6190153 (-0.00%) >> instructions in affected programs: 61126 -> 60905 (-0.36

Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-17 Thread Jason Ekstrand
On Fri, Apr 17, 2015 at 2:05 PM, Matt Turner wrote: > On Fri, Apr 17, 2015 at 2:02 PM, Jason Ekstrand wrote: >> What made the difference here? > > I think it's probably just that > > commit 4dacb212fdcc82def02b8c9233f94caa5a8a3000 > Author: Matt Turner > Date: Thu Apr 2 10:21:16 2015 -0700 > >

Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-17 Thread Matt Turner
On Fri, Apr 17, 2015 at 2:02 PM, Jason Ekstrand wrote: > What made the difference here? I think it's probably just that commit 4dacb212fdcc82def02b8c9233f94caa5a8a3000 Author: Matt Turner Date: Thu Apr 2 10:21:16 2015 -0700 nir: Allow abs/neg in select peephole pass. total instructi

Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-17 Thread Jason Ekstrand
What made the difference here? On Fri, Apr 17, 2015 at 1:56 PM, Matt Turner wrote: > Updated numbers look a lot better! > > On Tue, Mar 17, 2015 at 4:23 PM, Matt Turner wrote: >> Without NIR: >> >> total instructions in shared programs: 6190374 -> 6190153 (-0.00%) >> instructions in affected pr

Re: [Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-04-17 Thread Matt Turner
Updated numbers look a lot better! On Tue, Mar 17, 2015 at 4:23 PM, Matt Turner wrote: > Without NIR: > > total instructions in shared programs: 6190374 -> 6190153 (-0.00%) > instructions in affected programs: 61126 -> 60905 (-0.36%) > helped:156 total instruc

[Mesa-dev] [RFC PATCH 1/2] glsl: Transform pow(x, 4) into (x*x)*(x*x).

2015-03-17 Thread Matt Turner
Without NIR: total instructions in shared programs: 6190374 -> 6190153 (-0.00%) instructions in affected programs: 61126 -> 60905 (-0.36%) helped:156 With NIR: total instructions in shared programs: 6271584 -> 6271471 (-0.00%) instructions in affected programs