Remove support for the isnan intrinsic

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-06-15 21:37:54 +00:00
parent dc5724478e
commit c45ef6d395

View File

@ -245,7 +245,6 @@ bool llvm::canConstantFoldCallTo(Function *F) {
const std::string &Name = F->getName(); const std::string &Name = F->getName();
switch (F->getIntrinsicID()) { switch (F->getIntrinsicID()) {
case Intrinsic::isnan: return true;
case Intrinsic::isunordered: return true; case Intrinsic::isunordered: return true;
default: break; default: break;
} }
@ -274,8 +273,6 @@ Constant *llvm::ConstantFoldCall(Function *F,
if (Operands.size() == 1) { if (Operands.size() == 1) {
if (ConstantFP *Op = dyn_cast<ConstantFP>(Operands[0])) { if (ConstantFP *Op = dyn_cast<ConstantFP>(Operands[0])) {
double V = Op->getValue(); double V = Op->getValue();
if (Name == "llvm.isnan")
return ConstantBool::get(isnan(V));
else if (Name == "sin") else if (Name == "sin")
return ConstantFP::get(Ty, sin(V)); return ConstantFP::get(Ty, sin(V));
else if (Name == "cos") else if (Name == "cos")