[llvm-commits] CVS: llvm/lib/Analysis/ConstantFolding.cpp

Chris Lattner sabre at nondot.org
Sun Jan 7 00:20:02 PST 2007



Changes in directory llvm/lib/Analysis:

ConstantFolding.cpp updated: 1.8 -> 1.9
---
Log message:

remove llvm.isunordered


---
Diffs of the changes:  (+0 -5)

 ConstantFolding.cpp |    5 -----
 1 files changed, 5 deletions(-)


Index: llvm/lib/Analysis/ConstantFolding.cpp
diff -u llvm/lib/Analysis/ConstantFolding.cpp:1.8 llvm/lib/Analysis/ConstantFolding.cpp:1.9
--- llvm/lib/Analysis/ConstantFolding.cpp:1.8	Sat Dec 30 23:48:39 2006
+++ llvm/lib/Analysis/ConstantFolding.cpp	Sun Jan  7 02:19:47 2007
@@ -35,8 +35,6 @@
   const std::string &Name = F->getName();
 
   switch (F->getIntrinsicID()) {
-  case Intrinsic::isunordered_f32:
-  case Intrinsic::isunordered_f64:
   case Intrinsic::sqrt_f32:
   case Intrinsic::sqrt_f64:
   case Intrinsic::bswap_i16:
@@ -178,9 +176,6 @@
       if (ConstantFP *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
         double Op2V = Op2->getValue();
 
-        if (Name == "llvm.isunordered.f32" || Name == "llvm.isunordered.f64")
-          return ConstantBool::get(IsNAN(Op1V) || IsNAN(Op2V));
-        else
         if (Name == "pow") {
           errno = 0;
           double V = pow(Op1V, Op2V);






More information about the llvm-commits mailing list