diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2024-01-09 15:13:58 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 15:13:58 +0700 |
commit | daecc303bb719ed63566fcb343afec169826f82c (patch) | |
tree | c63d7bd035a54f45775c97e50a85ebbfdabd10e9 /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 81df51fb318f2a83de3414c6f9f6770fa6ccda38 (diff) | |
download | llvm-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