#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
namespace std { int isnan (double d) { return ::isnan (d); } }
#endif
+#endif
+
//===----------------------------------------------------------------------===//
// Local constant propagation...
//
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)