nv50/ir: prefer to color mad def and src2 with the same color
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 8 Dec 2015 23:46:34 +0000 (18:46 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 9 Dec 2015 04:15:29 +0000 (23:15 -0500)
commit44260d908062a4771c30ab635dd527f4266dbaec
treea03c655882e1ecf95d42b54bf7a5c16647304a21
parentc1c1248b94e17a1a4fa0e6f353377efa99efe602
nv50/ir: prefer to color mad def and src2 with the same color

This allows us to use the short encoding, and potentially fold
immediates in later on.

total instructions in shared programs : 6379731 -> 6367861 (-0.19%)
total gprs used in shared programs    : 728502 -> 728683 (0.02%)
total local used in shared programs   : 9904 -> 9904 (0.00%)
total bytes used in shared programs   : 44661008 -> 44154976 (-1.13%)

                local        gpr       inst      bytes
    helped           0          51        7267       20306
      hurt           0         232         125         274

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