aco: use a single instruction for uadd32_sat() on GFX8
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 15 Mar 2021 13:35:54 +0000 (13:35 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 17 Mar 2021 15:33:34 +0000 (15:33 +0000)
commit5bc100eb2def6fa1ae9b85dc81e9ebc672c32ec5
tree2657c8aa2556ad09bbdc73f715ff9f73a8d1206b
parent3decb52c8223b37a30d09d23ed3ecc398a14d971
aco: use a single instruction for uadd32_sat() on GFX8

fossil-db (GFX8):
Totals from 8 (0.01% of 147787) affected shaders:
SGPRs: 352 -> 368 (+4.55%)
CodeSize: 49576 -> 48788 (-1.59%)
Instrs: 9487 -> 9318 (-1.78%)
Latency: 49935 -> 49607 (-0.66%)
InvThroughput: 138493 -> 137443 (-0.76%)

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/9598>
src/amd/compiler/aco_instruction_selection.cpp