nv50/ir: add preliminary support for SHLADD

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

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.

85132c7 nv50/ir: add preliminary support for SHLADD
src/gallium/drivers/nouveau/codegen/nv50_ir.h | 1 +
.../drivers/nouveau/codegen/nv50_ir_print.cpp | 1 +
.../drivers/nouveau/codegen/nv50_ir_target.cpp | 6 +++---
.../nouveau/codegen/nv50_ir_target_nv50.cpp | 5 +++--
.../nouveau/codegen/nv50_ir_target_nvc0.cpp | 11 +++++++++--
5 files changed, 17 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share