nvc0/ir: remove merge/split pairs to allow normal propagation to occur
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Jul 2014 05:53:52 +0000 (01:53 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 21 Feb 2015 00:51:50 +0000 (19:51 -0500)
commit5491458843998e8083baf9b62c14895946de1a3f
tree8861108c6c4b72cda0d220d18c2dbd6cc9b8a34d
parent93812dc10aebf805568926583b0f289ebb5ccbf6
nvc0/ir: remove merge/split pairs to allow normal propagation to occur

Because the TGSI interface creates merges for each instruction source
and then splits them back out, there are a lot of unnecessary
merge/split pairs which do essentially nothing. The various modifier/etc
propagation doesn't know how to walk though those, so just remove them
when they're unnecessary.

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