Re: [Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-30 Thread Ilia Mirkin
On Apr 30, 2017 8:14 AM, "Karol Herbst" wrote: 2017-04-30 2:28 GMT+02:00 Ilia Mirkin : > Maybe in a separate change. I'd want to double check on all gens. I think > the thing I suggested is sufficient. > well, if I just fixup the op, I kind of have

Re: [Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-30 Thread Karol Herbst
2017-04-30 2:28 GMT+02:00 Ilia Mirkin : > Maybe in a separate change. I'd want to double check on all gens. I think > the thing I suggested is sufficient. > well, if I just fixup the op, I kind of have to fix the mod as well. And if I use getOp, it could also return a

Re: [Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-29 Thread Ilia Mirkin
Maybe in a separate change. I'd want to double check on all gens. I think the thing I suggested is sufficient. On Apr 29, 2017 8:09 PM, "Karol Herbst" wrote: 2017-04-30 0:28 GMT+02:00 Ilia Mirkin : > On Sat, Apr 29, 2017 at 6:09 PM, Karol Herbst

Re: [Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-29 Thread Karol Herbst
2017-04-30 0:28 GMT+02:00 Ilia Mirkin : > On Sat, Apr 29, 2017 at 6:09 PM, Karol Herbst wrote: >> helps two alien isolation shaders >> >> shader-db: >> total instructions in shared programs : 4251497 -> 4251494 (-0.00%) >> total gprs used in shared

Re: [Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-29 Thread Ilia Mirkin
On Sat, Apr 29, 2017 at 6:09 PM, Karol Herbst wrote: > helps two alien isolation shaders > > shader-db: > total instructions in shared programs : 4251497 -> 4251494 (-0.00%) > total gprs used in shared programs: 513962 -> 513962 (0.00%) > total local used in shared

[Nouveau] [PATCH v2] nv50/ir: optimize shl(a, 0) to a

2017-04-29 Thread Karol Herbst
helps two alien isolation shaders shader-db: total instructions in shared programs : 4251497 -> 4251494 (-0.00%) total gprs used in shared programs: 513962 -> 513962 (0.00%) total local used in shared programs : 29797 -> 29797 (0.00%) total bytes used in shared programs : 38960264 ->