nv50/ir: teach post-ra immediate folding into mad about integers
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 11 Dec 2015 03:50:31 +0000 (22:50 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 12 Dec 2015 23:10:15 +0000 (18:10 -0500)
commita0b5d5beedb5bc5dcfd4c62c02576fdddf63d1f0
tree80e5cd68c987e9145a5ba64693ea23aae5453f59
parentab70ea1353ac9859ee51d236482fe92a0493362d
nv50/ir: teach post-ra immediate folding into mad about integers

There will usually be a split before the mad op, peer through that and
pick out the right word of the immediate.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp