diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-15 21:37:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-15 21:37:54 +0000 |
commit | c45ef6d395eb800c62aee61b666cd4fd890dd603 (patch) | |
tree | 023db7566e4440ef09ceb04eee97c2d4f3cb95e5 /lib/Transforms/Utils/Local.cpp | |
parent | dc5724478e4b5e7de8af822518040348d695f57f (diff) |
Remove support for the isnan intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 3 |
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") |