diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-04-26 14:03:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-26 14:03:12 +0800 |
commit | 3e1e4062e1e95031c32c0ed9786647ef1a4141aa (patch) | |
tree | 5a2f015544213ab31f2f990cdbbad06617331b1b /clang/lib/Interpreter/Interpreter.cpp | |
parent | 2ae9a74bf1421950bd404fec099b1f9998093916 (diff) | |
download | llvm-3e1e4062e1e95031c32c0ed9786647ef1a4141aa.zip llvm-3e1e4062e1e95031c32c0ed9786647ef1a4141aa.tar.gz llvm-3e1e4062e1e95031c32c0ed9786647ef1a4141aa.tar.bz2 |
[InstCombine] Preserve signbit semantics of NaN with fold to fabs (#136648)
As per the LangRef and IEEE 754-2008 standard, the sign bit of NaN is
preserved if there is no floating-point operation being performed.
See also
https://github.com/llvm/llvm-project/commit/862e35e25a68502433da0a8d0819448ff5745339
for reference.
Alive2: https://alive2.llvm.org/ce/z/QYtEGj
Closes https://github.com/llvm/llvm-project/issues/136646
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
0 files changed, 0 insertions, 0 deletions