nv50/ir: fix constant folding for OP_MUL subop HIGH
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 15 May 2014 03:22:32 +0000 (23:22 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 21 May 2014 13:31:16 +0000 (09:31 -0400)
commitd2a3de19c6aa5881228734c73df706483a4aecf9
treece80e98961607d96c485b70048e5c0d3afd0eac7
parentd3a5cf052c38087b395871b5b46776e2a7d4a7d7
nv50/ir: fix constant folding for OP_MUL subop HIGH

These instructions can come in either through IMUL_HI/UMUL_HI TGSI
opcodes, or from OP_DIV constant folding.

Also make sure that the constant foldings which delete the original
instruction still get counted as having done something.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp