[llvm] [TLI] Add support for nan libfunc (PR #101356)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 31 13:11:30 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:
----------------
arsenm wrote:
The conditions where strtod would hit an error shouldn't apply for nan though? 
https://github.com/llvm/llvm-project/pull/101356
    
    
More information about the llvm-commits
mailing list