aco: create 16-bit mad/fma
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 14 May 2020 20:09:36 +0000 (21:09 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 18:24:22 +0000 (18:24 +0000)
commit7f511efa16adb5e820c4535473de9bfb59f5e470
treef5a032daec5e9ca01a8db03b711d971e0b4d916c
parent1b10764e50998a556e000323c77d4a1632a80dfc
aco: create 16-bit mad/fma

fossil-db (Navi, fp16 enabled):
Totals from 1 (0.00% of 127638) affected shaders:
CodeSize: 4868 -> 4552 (-6.49%)
Instrs: 956 -> 863 (-9.73%)
Cycles: 3824 -> 3452 (-9.73%)
VMEM: 504 -> 490 (-2.78%)
SMEM: 109 -> 107 (-1.83%)
VClause: 19 -> 20 (+5.26%)
Copies: 54 -> 58 (+7.41%)
PreVGPRs: 43 -> 41 (-4.65%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5245>
src/amd/compiler/aco_optimizer.cpp
src/amd/compiler/aco_register_allocation.cpp