OSDN Git Service

nv50/ir: optimize near power-of-twos into shladd
authorRhys Perry <pendingchaos02@gmail.com>
Sat, 18 Aug 2018 14:06:01 +0000 (15:06 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 27 Aug 2018 12:57:01 +0000 (13:57 +0100)
commit400a4eb964bc43c339ce213ee40b41e11c8d44dc
tree48a745387ecc144ef90fb1f4d88fde3ce82c127c
parent2f52925f5c60c72c9389bfdc122c3d5f8e15b25f
nv50/ir: optimize near power-of-twos into shladd

total instructions in shared programs : 5819319 -> 5796385 (-0.39%)
total gprs used in shared programs    : 670571 -> 670103 (-0.07%)
total shared used in shared programs  : 548832 -> 548832 (0.00%)
total local used in shared programs   : 21164 -> 21164 (0.00%)

                local     shared        gpr       inst      bytes
    helped           0           0         318        1758        1758
      hurt           0           0          63           0           0

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp