diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-21 06:17:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-21 06:17:21 +0000 |
commit | 46f60890a31e3f727e5aece0015fe18a15eb7170 (patch) | |
tree | 2e610a195d6d912e7624938b02ffe09b3813222b /llvm/lib/Transforms | |
parent | 1c676f76b62487dd1a84da59486c4c346a656b28 (diff) | |
download | bcm5719-llvm-46f60890a31e3f727e5aece0015fe18a15eb7170.tar.gz bcm5719-llvm-46f60890a31e3f727e5aece0015fe18a15eb7170.zip |
Comment out the isnan stuff until we get a proper autoconf test for it
breaking the build on sparc is not acceptable.
llvm-svn: 14277
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index df831c78a42..677a7dcc1ca 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -20,6 +20,7 @@ #include <cmath> using namespace llvm; +#if 0 #if defined(__POWERPC__) && defined(__APPLE_CC__) // FIXME: Currently it seems that isnan didn't make its way into the Apple // C++ headers, although it IS in the C headers (which confuses autoconf @@ -29,6 +30,8 @@ extern "C" int isnan (double d); namespace std { int isnan (double d) { return ::isnan (d); } } #endif +#endif + //===----------------------------------------------------------------------===// // Local constant propagation... // @@ -300,9 +303,12 @@ Constant *llvm::ConstantFoldCall(Function *F, if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) { double Op1V = Op1->getValue(), Op2V = Op2->getValue(); +#if 0 if (Name == "llvm.isunordered") return ConstantBool::get(std::isnan(Op1V) | std::isnan(Op2V)); - else if (Name == "pow") { + else +#endif + if (Name == "pow") { errno = 0; double V = pow(Op1V, Op2V); if (errno == 0) |