ac/llvm: set !fpmath 3.0 for llvm.sqrt
authorMarek Olšák <marek.olsak@amd.com>
Thu, 3 Aug 2023 00:24:04 +0000 (20:24 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 30 Sep 2023 23:08:46 +0000 (23:08 +0000)
commit2d928c7fee5f6c797c2cde6a9605305b31bfb1ce
tree10b5da733ccbaec81e58953689b1924e98a4f048
parent476529a692d57aeaa6f8f21e7adead37eba7d31d
ac/llvm: set !fpmath 3.0 for llvm.sqrt

LLVM will be changed to increase precision with additional instructions,
which we don't want.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25492>
src/amd/llvm/ac_llvm_build.c
src/amd/llvm/ac_llvm_build.h
src/amd/llvm/ac_nir_to_llvm.c