Re: [Mesa-dev] [PATCH] nv50/ir: optimize sub(a, 0) to a

2016-10-06 Thread Pierre Moreau
Reviewed-by: Pierre Moreau On 12:36 am - Oct 06 2016, Karol Herbst wrote: > helped some ue4 demos and divinity OS shaders > > total instructions in shared programs : 2818674 -> 2818606 (-0.00%) > total gprs used in shared programs: 379273 -> 379273 (0.00%) > total

Re: [Mesa-dev] [PATCH] nv50/ir: optimize sub(a, 0) to a

2016-10-05 Thread Ilia Mirkin
To be clear, this also rewrites sub(0, a) to neg(a). Either way, this is Reviewed-by: Ilia Mirkin On Wed, Oct 5, 2016 at 6:36 PM, Karol Herbst wrote: > helped some ue4 demos and divinity OS shaders > > total instructions in shared programs : 2818674

[Mesa-dev] [PATCH] nv50/ir: optimize sub(a, 0) to a

2016-10-05 Thread Karol Herbst
helped some ue4 demos and divinity OS shaders total instructions in shared programs : 2818674 -> 2818606 (-0.00%) total gprs used in shared programs: 379273 -> 379273 (0.00%) total local used in shared programs : 9505 -> 9505 (0.00%) total bytes used in shared programs : 25837792 ->