[llvm] ad6d87d - Revert "[ConstantFolding] Consider `tanh*` to always be a noop (#70794)"
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 08:31:23 PST 2026
Author: Aiden Grossman
Date: 2026-03-06T16:31:12Z
New Revision: ad6d87da32f9d124ead257af45310348e092767c
URL: https://github.com/llvm/llvm-project/commit/ad6d87da32f9d124ead257af45310348e092767c
DIFF: https://github.com/llvm/llvm-project/commit/ad6d87da32f9d124ead257af45310348e092767c.diff
LOG: Revert "[ConstantFolding] Consider `tanh*` to always be a noop (#70794)"
This reverts commit 110082566b000af791d6fed338831e276355dc68.
This broke check-llvm.
Added:
Modified:
llvm/lib/Analysis/ConstantFolding.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index e69f47d731afc..8e447b84d3149 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -4625,9 +4625,6 @@ bool llvm::isMathLibCallNoop(const CallBase *Call,
case LibFunc_atan:
case LibFunc_atanf:
case LibFunc_atanl:
- case LibFunc_tanh:
- case LibFunc_tanhf:
- case LibFunc_tanhl:
// Per POSIX, this MAY fail if Op is denormal. We choose not failing.
return true;
More information about the llvm-commits
mailing list