[llvm] [ConstantFold] Fold `erf` and `erff` when the input parameter is a constant value. (PR #113079)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 20 15:11:05 PDT 2024
================
@@ -3624,6 +3628,10 @@ bool llvm::isMathLibCallNoop(const CallBase *Call,
case LibFunc_sqrtf:
return Op.isNaN() || Op.isZero() || !Op.isNegative();
+ case LibFunc_erf:
+ case LibFunc_erff:
+ return true;
----------------
arsenm wrote:
I'm unclear on if and when errno is written. The linux man page says this. The C standard seems to suggest it raises a range error, which depending on platform configuration may be errno and/or fp exception
https://github.com/llvm/llvm-project/pull/113079
More information about the llvm-commits
mailing list