nv50/ir: take postFactor into account when doing peephole optimizations
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 25 Mar 2015 22:00:00 +0000 (18:00 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 27 Mar 2015 23:02:19 +0000 (19:02 -0400)
commit49b86007aa2bb599ada6cdbed7ff56246917f12e
treec25d9ffe6ee4aa4f0a9f2d8da26bdebe5870aa34
parenta99a16a0cffbb79e1f9a2d2844c549e6ff91afdb
nv50/ir: take postFactor into account when doing peephole optimizations

Multiply operations can have a post-factor on them, which other ops
don't support. Only perform the peephole optimizations when there is no
post-factor involved.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89758
Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp