aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2024-01-09 15:13:58 +0700
committerGitHub <noreply@github.com>2024-01-09 15:13:58 +0700
commitdaecc303bb719ed63566fcb343afec169826f82c (patch)
treec63d7bd035a54f45775c97e50a85ebbfdabd10e9 /llvm/lib/Object/ELFObjectFile.cpp
parent81df51fb318f2a83de3414c6f9f6770fa6ccda38 (diff)
downloadllvm-daecc303bb719ed63566fcb343afec169826f82c.zip
llvm-daecc303bb719ed63566fcb343afec169826f82c.tar.gz
llvm-daecc303bb719ed63566fcb343afec169826f82c.tar.bz2
AMDGPU: Replace sqrt OpenCL libcalls with llvm.sqrt (#74197)
The library implementation is just a wrapper around a call to the intrinsic, but loses metadata. Swap out the call site to the intrinsic so that the lowering can see the !fpmath metadata and fast math flags. Since d56e0d07cc5ee8e334fd1ad403eef0b1a771384f, clang started placing !fpmath on OpenCL library sqrt calls. Also don't bother emitting native_sqrt anymore, it's just another wrapper around llvm.sqrt.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions