nv50/ir: add optimization for modulo by a non-power-of-2 value
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Nov 2017 03:10:46 +0000 (22:10 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 26 Nov 2017 06:10:03 +0000 (01:10 -0500)
commit50e913b9c5d311334281da89b4e9969d48fd62b6
treeb3cc1d2f1105f0e184059845ff3fa19bde791290
parent3079993727ddfe6b09e1f0ec8f834691fd654b46
nv50/ir: add optimization for modulo by a non-power-of-2 value

We can still use the optimized division methods which make use of
multiplication with overflow.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp