Re: [Mesa-dev] [PATCH 4/6] nv50/ir: optimize shl(shr(a, c), c) to and(a, ~((1 << c) - 1))

2016-01-25 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin I'll run it on my collection on both nvc0 and nv50 to make sure this doesn't subtly explode somehow, but looks great! I've been meaning to do this myself but never got around to it. On Mon, Jan 25, 2016 at 9:57 AM, Karol Herbst wrote: > From: Karol Herbst > > helps sha

[Mesa-dev] [PATCH 4/6] nv50/ir: optimize shl(shr(a, c), c) to and(a, ~((1 << c) - 1))

2016-01-25 Thread Karol Herbst
From: Karol Herbst helps shaders in multiple games total instructions in shared programs : 192 -> 1901958 (-0.48%) total gprs used in shared programs: 251739 -> 251739 (0.00%) total local used in shared programs : 5673 -> 5673 (0.00%) total bytes used in shared programs : 17523440 ->