mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Remove isnan support, correct isunordered support
llvm-svn: 14187
This commit is contained in:
parent
1adcf0441d
commit
c9a6116586
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user