aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorArtem Tyurin <artem.tyurin@gmail.com>2024-02-24 14:35:35 +0100
committerGitHub <noreply@github.com>2024-02-24 21:35:35 +0800
commit1901f442ca6374787e6810adb573d138f80893dd (patch)
tree3f5ecc50337dff1e24824f3127b56eaf4441a23c /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent00c0638b5613912a7d1b65c8789bbb8ad1003115 (diff)
downloadllvm-1901f442ca6374787e6810adb573d138f80893dd.zip
llvm-1901f442ca6374787e6810adb573d138f80893dd.tar.gz
llvm-1901f442ca6374787e6810adb573d138f80893dd.tar.bz2
[InstCombine] Handle more even/odd math functions (#81324)
At the moment this PR adds support only for `erf` function. Fixes #77220.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BuildLibCalls.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
index 12741dc..ed0ed34 100644
--- a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -1137,6 +1137,9 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
case LibFunc_cosl:
case LibFunc_cospi:
case LibFunc_cospif:
+ case LibFunc_erf:
+ case LibFunc_erff:
+ case LibFunc_erfl:
case LibFunc_exp:
case LibFunc_expf:
case LibFunc_expl: