nv50/ir: fold shl + mul with immediates
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Dec 2015 22:26:32 +0000 (17:26 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 5 Dec 2015 23:56:43 +0000 (18:56 -0500)
commit0ef5c8ab7405fcc76b23393d4414f46cc9edb1fc
tree795b5d333a9077c634d164fd04918d13b4a25496
parentabd326e81b06f58797be94bd655ee06b17a34f0c
nv50/ir: fold shl + mul with immediates

On SM20 this gives:

total instructions in shared programs : 6299222 -> 6294240 (-0.08%)
total gprs used in shared programs    : 944139 -> 944068 (-0.01%)
total local used in shared programs   : 54116 -> 54116 (0.00%)

                local        gpr       inst      bytes
    helped           0         126        2781        2781
      hurt           0          55          11          11

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