diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-01-07 08:52:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-01-07 08:52:43 +0000 |
| commit | 2a116abf3adad896dac96411be93e877c6d8c987 (patch) | |
| tree | eadc3c4ad7c406669c9605f6bdc7715555b14fb7 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
| parent | 59585a61fcf2c9df45a53bae7e974ff36b03a341 (diff) | |
| download | bcm5719-llvm-2a116abf3adad896dac96411be93e877c6d8c987.tar.gz bcm5719-llvm-2a116abf3adad896dac96411be93e877c6d8c987.zip | |
llvm 2.0 doesn't support llvm.isunordered.*
llvm-svn: 32994
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index ba89052572a..72a1d1485b4 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -92,11 +92,6 @@ void IntrinsicLowering::AddPrototypes(Module &M) { Type::Int32Ty, (--(--I->arg_end()))->getType(), (Type *)0); break; - case Intrinsic::isunordered_f32: - case Intrinsic::isunordered_f64: - EnsureFunctionExists(M, "isunordered", I->arg_begin(), I->arg_end(), - Type::BoolTy); - break; case Intrinsic::sqrt_f32: case Intrinsic::sqrt_f64: if(I->arg_begin()->getType() == Type::FloatTy) @@ -392,18 +387,6 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { (*(CI->op_begin()+1))->getType(), MemsetFCache); break; } - case Intrinsic::isunordered_f32: - case Intrinsic::isunordered_f64: { - Value *L = CI->getOperand(1); - Value *R = CI->getOperand(2); - - Value *LIsNan = new FCmpInst(FCmpInst::FCMP_ONE, L, L, "LIsNan", CI); - Value *RIsNan = new FCmpInst(FCmpInst::FCMP_ONE, R, R, "RIsNan", CI); - CI->replaceAllUsesWith( - BinaryOperator::create(Instruction::Or, LIsNan, RIsNan, - "isunordered", CI)); - break; - } case Intrinsic::sqrt_f32: { static Constant *sqrtfFCache = 0; ReplaceCallWith("sqrtf", CI, CI->op_begin()+1, CI->op_end(), |

