aco: combine DPP into VALU before RA
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 30 Jun 2020 14:33:18 +0000 (15:33 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Aug 2021 18:17:33 +0000 (18:17 +0000)
commit2e6834d4f6c9985bcaedd5ebc35ac5afc93c8f6f
tree8cefd7ea0da698e5e14044386af1ad4b5c49c911
parentb97cfd72afc2f693a21e8b662dc965fc8e3b63fb
aco: combine DPP into VALU before RA

Mostly helps a bunch of Cyberpunk 2077 shaders. Catches some of the cases
that the post-RA can't optimize because of register assignment.

fossil-db (Siena Cichlid):
Totals from 25 (0.02% of 150170) affected shaders:
CodeSize: 78808 -> 75764 (-3.86%)
Instrs: 14311 -> 13547 (-5.34%)
Latency: 278697 -> 277885 (-0.29%)
InvThroughput: 63428 -> 62754 (-1.06%)
Copies: 1348 -> 1349 (+0.07%); split: -0.07%, +0.15%
PreVGPRs: 1035 -> 1011 (-2.32%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11924>
src/amd/compiler/aco_optimizer.cpp