Re: [Mesa-dev] [PATCH 3/6] nv50/ir: optimize IMAD to SHLADD in presence of power of 2

2016-09-19 Thread Ilia Mirkin
On Mon, Sep 19, 2016 at 6:11 PM, Samuel Pitoiset wrote: > Only and only if src1 is a power of 2 we can replace IMAD by SHLADD. > > Signed-off-by: Samuel Pitoiset > --- > src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 13 + > 1 file changed, 13 insertions(+) > > diff --git

[Mesa-dev] [PATCH 3/6] nv50/ir: optimize IMAD to SHLADD in presence of power of 2

2016-09-19 Thread Samuel Pitoiset
Only and only if src1 is a power of 2 we can replace IMAD by SHLADD. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 13 + 1 file changed, 13 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gall