From be78ac442216ef87b13f9ac3da365a693417c693 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Jun 2004 21:42:23 +0000 Subject: [PATCH] Remove isnan support, correct isunordered support git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14187 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/IntrinsicLowering.cpp | 12 ++---------- lib/VMCore/IntrinsicLowering.cpp | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/lib/CodeGen/IntrinsicLowering.cpp b/lib/CodeGen/IntrinsicLowering.cpp index a4ec31d4196..313f510edbf 100644 --- a/lib/CodeGen/IntrinsicLowering.cpp +++ b/lib/CodeGen/IntrinsicLowering.cpp @@ -105,8 +105,8 @@ void DefaultIntrinsicLowering::AddPrototypes(Module &M) { EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(), I->abegin()->getType()); break; - case Intrinsic::isnan: - EnsureFunctionExists(M, "isnan", I->abegin(), I->aend(), Type::BoolTy); + case Intrinsic::isunordered: + EnsureFunctionExists(M, "isunordered", I->abegin(), I->aend(), Type::BoolTy); break; } @@ -200,14 +200,6 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { (*(CI->op_begin()+1))->getType(), MemsetFCache); break; } - case Intrinsic::isnan: { - // FIXME: This should force the argument to be a double. There may be - // multiple isnans for different FP arguments. - static Function *isnanFCache = 0; - ReplaceCallWith("isnan", CI, CI->op_begin()+1, CI->op_end(), - Type::BoolTy, isnanFCache); - break; - } case Intrinsic::isunordered: { static Function *isunorderedFCache = 0; ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(), diff --git a/lib/VMCore/IntrinsicLowering.cpp b/lib/VMCore/IntrinsicLowering.cpp index a4ec31d4196..313f510edbf 100644 --- a/lib/VMCore/IntrinsicLowering.cpp +++ b/lib/VMCore/IntrinsicLowering.cpp @@ -105,8 +105,8 @@ void DefaultIntrinsicLowering::AddPrototypes(Module &M) { EnsureFunctionExists(M, "memset", I->abegin(), --I->aend(), I->abegin()->getType()); break; - case Intrinsic::isnan: - EnsureFunctionExists(M, "isnan", I->abegin(), I->aend(), Type::BoolTy); + case Intrinsic::isunordered: + EnsureFunctionExists(M, "isunordered", I->abegin(), I->aend(), Type::BoolTy); break; } @@ -200,14 +200,6 @@ void DefaultIntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { (*(CI->op_begin()+1))->getType(), MemsetFCache); break; } - case Intrinsic::isnan: { - // FIXME: This should force the argument to be a double. There may be - // multiple isnans for different FP arguments. - static Function *isnanFCache = 0; - ReplaceCallWith("isnan", CI, CI->op_begin()+1, CI->op_end(), - Type::BoolTy, isnanFCache); - break; - } case Intrinsic::isunordered: { static Function *isunorderedFCache = 0; ReplaceCallWith("isunordered", CI, CI->op_begin()+1, CI->op_end(),