[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jun 21 01:25:01 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
Local.cpp updated: 1.31 -> 1.32
---
Log message:
Comment out the isnan stuff until we get a proper autoconf test for it
breaking the build on sparc is not acceptable.
---
Diffs of the changes: (+7 -1)
Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.31 llvm/lib/Transforms/Utils/Local.cpp:1.32
--- llvm/lib/Transforms/Utils/Local.cpp:1.31 Thu Jun 17 17:27:04 2004
+++ llvm/lib/Transforms/Utils/Local.cpp Mon Jun 21 01:17:21 2004
@@ -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 @@
namespace std { int isnan (double d) { return ::isnan (d); } }
#endif
+#endif
+
//===----------------------------------------------------------------------===//
// Local constant propagation...
//
@@ -300,9 +303,12 @@
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)
More information about the llvm-commits
mailing list