nv50/ir: optimize SHLADD(a, b, c) to MOV((a << b) + c)
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Sep 2016 20:15:14 +0000 (22:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 29 Sep 2016 19:20:47 +0000 (21:20 +0200)
commit115c79be10bf3712a1e1bc25a563c90388c1bcaa
tree286a54db8ef52d58116934794230c0de91b3061b
parent2e008be9a9a4c94564c11718e0f6fc029caa0e44
nv50/ir: optimize SHLADD(a, b, c) to MOV((a << b) + c)

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp