nv50/ir: optimize ADD(SHL(a, b), c) to SHLADD(a, b, c)
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Oct 2016 23:16:24 +0000 (01:16 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Oct 2016 15:46:03 +0000 (17:46 +0200)
commit87b06cab14c449e442be27650024f044e93c9a7c
treefaca7df0af71290d3a0f0c94f32031fd2d9baa07
parent85ba409967bb0327b85460639080214b3997fc17
nv50/ir: optimize ADD(SHL(a, b), c) to SHLADD(a, b, c)

total instructions in shared programs :2286901 -> 2284473 (-0.11%)
total gprs used in shared programs    :335256 -> 335273 (0.01%)
total local used in shared programs   :31968 -> 31968 (0.00%)

                local        gpr       inst      bytes
    helped           0          41         852         852
      hurt           0          44          23          23

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp