nv50/ir: optimize mad/fma with third argument 0 to mul
authorKarol Herbst <nouveau@karolherbst.de>
Wed, 27 Jan 2016 17:25:08 +0000 (18:25 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 28 Jan 2016 20:59:41 +0000 (15:59 -0500)
commit29d09f8747abea35f4deadced0196725d4ab89cf
tree4962a841506fac3483f0a974bad1f2be359357a1
parent3aa681449ed030ba8b9c56f0a6f2b08bd1fb15a6
nv50/ir: optimize mad/fma with third argument 0 to mul

Very modest effect, but it's clearly the right thing to do.

total instructions in shared programs : 6131491 -> 6131398 (-0.00%)
total gprs used in shared programs    : 910157 -> 910131 (-0.00%)
total local used in shared programs   : 15328 -> 15328 (0.00%)

                local        gpr       inst      bytes
    helped           0          55          85          85
      hurt           0          26          20          20

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