aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-07-08 20:07:45 -0500
committerGitHub <noreply@github.com>2024-07-08 20:07:45 -0500
commitafa6bed8afe9011c07c682a0a24362260d92cfdd (patch)
tree45dfa10a6648fd8aeaa3bb9ef2bc3f21c66c16c8 /llvm/lib/CodeGen/BranchFolding.cpp
parentb2fd1ebc3523d225956120052bcc0698adf4579f (diff)
downloadllvm-afa6bed8afe9011c07c682a0a24362260d92cfdd.zip
llvm-afa6bed8afe9011c07c682a0a24362260d92cfdd.tar.gz
llvm-afa6bed8afe9011c07c682a0a24362260d92cfdd.tar.bz2
[libc] Fix integer `rint` variants on the GPU (#98095)
Summary: Currently these are implemented as a static cast on `__builtin_rint()` to a long. Howver, this is not strictly correct. The standard states that the output is unspecified, but most implementations, and the LLVM libc implementation, do some kind of guarantee on this beahvior. This is not guaranteed by just doing a cast. This patch just uses the generic versions until we implement `__builitin_lrint` correctly.
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions