isnan is dead
authorChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2004 21:52:58 +0000 (21:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2004 21:52:58 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14191 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/VMCore/Function.cpp
lib/VMCore/Verifier.cpp

index 85e7802c77caf96ded45be4b959ba7e8b4e5390c..f5e525985b4813b744ce1abdf9f8c496a62012fc 100644 (file)
@@ -60,8 +60,7 @@ namespace Intrinsic {
     memset,         // Fill memory with a byte value
 
     // libm related functions.
-    isnan,          // Return true if fp argument is a NAN.
-    isunordered,    // Return true if fp arguments are unordered
+    isunordered,    // Return true if either argument is a NaN
 
     // Input/Output intrinsics.
     readport,
index efaa7beb89baad1a845673c507152aa0b355d9be..9e8aed6f805706479c822336a98f815fdc0c10b8 100644 (file)
@@ -649,7 +649,7 @@ namespace {
 // that set errno on a domain or other error.
 static const char *DoesntAccessMemoryTable[] = {
   // LLVM intrinsics:
-  "llvm.frameaddress", "llvm.returnaddress", "llvm.readport", "llvm.isnan",
+  "llvm.frameaddress", "llvm.returnaddress", "llvm.readport", "llvm.isunordered",
 
   "abs", "labs", "llabs", "imaxabs", "fabs", "fabsf", "fabsl",
   "trunc", "truncf", "truncl", "ldexp",
index 4f6c997255dd62fbff360d38fc149cb88fc2bf20..82f3645acb10b534f7e581202faa445933b00353 100644 (file)
@@ -223,7 +223,6 @@ unsigned Function::getIntrinsicID() const {
     if (getName() == "llvm.gcroot")  return Intrinsic::gcroot;
     break;
   case 'i':
-    if (getName() == "llvm.isnan") return Intrinsic::isnan;
     if (getName() == "llvm.isunordered") return Intrinsic::isunordered;
     break;
   case 'l':
index b832bd117478caf7d26a50a3f2301ee98334f310..40387d3015381b83235229e15ce2e79e2426b37b 100644 (file)
@@ -688,16 +688,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
     break;
   }
 
-  case Intrinsic::isnan:
-    Assert1(FT->getNumParams() == 1,
-            "Illegal # arguments for intrinsic function!", IF);
-    Assert1(FT->getReturnType() == Type::BoolTy,
-            "Return type is not bool!", IF);
-    Assert1(FT->getParamType(0)->isFloatingPoint(),
-            "Argument is not a floating point type!", IF);
-    NumArgs = 1;
-    break;
-
   case Intrinsic::isunordered:
     Assert1(FT->getNumParams() == 2,
             "Illegal # arguments for intrinsic function!", IF);