[llvm] [ConstantFold] Special case atan +/-0.0 (PR #143962)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 13 14:11:03 PDT 2025
================
@@ -2549,6 +2549,9 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
case Intrinsic::cosh:
return ConstantFoldFP(cosh, APF, Ty);
case Intrinsic::atan:
+ // Implement optional behavior from C's Annex F for +/-0.0.
----------------
topperc wrote:
I'm not sure what we should do. If we aren't going to fix LibFunc_atan then an equally valid fix for the current issue is to change the test case in #143416 to use a different constant.
https://github.com/llvm/llvm-project/pull/143962
More information about the llvm-commits
mailing list