nv50/ir: optimize IMAD to SHLADD in presence of power of 2

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 29 September 2016 14:20 UTC

Only and only if src1 is a power of 2 we can replace IMAD by SHLADD.

e4eb0fc nv50/ir: optimize IMAD to SHLADD in presence of power of 2
.../drivers/nouveau/codegen/nv50_ir_peephole.cpp | 7 +++++++
1 file changed, 7 insertions(+)

Upstream: cgit.freedesktop.org


  • Share