Re: [Mesa-dev] [PATCH v3 1/6] nv50/ir: add preliminary support for SHLADD

2016-09-27 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Tue, Sep 27, 2016 at 2:55 PM, Samuel Pitoiset wrote: > This instruction is available since SM20 (Fermi) and allow to do > (a << b) + c in one shot. In some situations, IMAD should be > replaced by SHLADD when b is a power of 2, and ADD+SHL should be > replaced by SHLA

[Mesa-dev] [PATCH v3 1/6] nv50/ir: add preliminary support for SHLADD

2016-09-27 Thread Samuel Pitoiset
This instruction is available since SM20 (Fermi) and allow to do (a << b) + c in one shot. In some situations, IMAD should be replaced by SHLADD when b is a power of 2, and ADD+SHL should be replaced by SHLADD as well. v3: - fix neg flag - remove isFloatType() in isOpSupported() - teach is