ac/llvm: open code fpow on LLVM 12 using fmul.legacy
authorMarek Olšák <marek.olsak@amd.com>
Fri, 12 Feb 2021 06:06:18 +0000 (01:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Mar 2021 20:06:09 +0000 (20:06 +0000)
commita0cc0b3a154dfc4370c6eea4271d8a80c6616abb
tree5506ecaa115a1316dd84d9d0578abe86d719064c
parent18c1c1404de15bfe9eaed1a6fcb588ac77705d85
ac/llvm: open code fpow on LLVM 12 using fmul.legacy

A quick look at the asm shows that this enables source modifiers
(neg, abs) for v_mul_legacy_f32.

Totals from affected shaders:
SGPRS: 110104 -> 110400 (0.27 %)
VGPRS: 57632 -> 57636 (0.01 %)
Spilled SGPRs: 66 -> 63 (-4.55 %)
Spilled VGPRs: 0 -> 0 (0.00 %)
Private memory VGPRs: 0 -> 0 (0.00 %)
Scratch size: 0 -> 0 (0.00 %) dwords per thread
Code Size: 3290412 -> 3283068 (-0.22 %) bytes
Max Waves: 32141 -> 32141 (0.00 %)

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9395>
src/amd/llvm/ac_nir_to_llvm.c