[llvm] [TLI] Add support for nan libfunc (PR #101356)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 12:52:33 PDT 2024


================
@@ -279,6 +279,9 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
     Changed |= setNonLazyBind(F);
 
   switch (TheLibFunc) {
+  case LibFunc_nan:
+  case LibFunc_nanf:
+  case LibFunc_nanl:
----------------
dtcxzyw wrote:

> Error handling
This function is not subject to any of the error conditions specified in [math_errhandling](https://en.cppreference.com/w/c/numeric/math/math_errhandling).

https://github.com/llvm/llvm-project/pull/101356


More information about the llvm-commits mailing list