aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index e9ec6db069..694c31e1f9 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -245,7 +245,6 @@ bool llvm::canConstantFoldCallTo(Function *F) {
const std::string &Name = F->getName();
switch (F->getIntrinsicID()) {
- case Intrinsic::isnan: return true;
case Intrinsic::isunordered: return true;
default: break;
}
@@ -274,8 +273,6 @@ Constant *llvm::ConstantFoldCall(Function *F,
if (Operands.size() == 1) {
if (ConstantFP *Op = dyn_cast<ConstantFP>(Operands[0])) {
double V = Op->getValue();
- if (Name == "llvm.isnan")
- return ConstantBool::get(isnan(V));
else if (Name == "sin")
return ConstantFP::get(Ty, sin(V));
else if (Name == "cos")