[all-commits] [llvm/llvm-project] 4a31f7: [ConstantFold] Special case atan +/-0.0 (#143962)
Lei Huang via All-commits
all-commits at lists.llvm.org
Wed Jun 25 13:03:40 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a31f7f8ea776383d72350cb5ce74ce13ee15431
https://github.com/llvm/llvm-project/commit/4a31f7f8ea776383d72350cb5ce74ce13ee15431
Author: Lei Huang <lei at ca.ibm.com>
Date: 2025-06-25 (Wed, 25 Jun 2025)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
M llvm/test/Transforms/InstSimplify/ConstProp/atan-intrinsic.ll
M llvm/test/Transforms/InstSimplify/ConstProp/calls.ll
Log Message:
-----------
[ConstantFold] Special case atan +/-0.0 (#143962)
C's Annex F specifies that atan +/-0.0 returns the input value;
however, this behavior is optional and host C libraries may behave
differently. This change applies the Annex F behavior to constant
folding by LLVM.
Ref:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/atan.html
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list