[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Chris Lattner sabre at nondot.org
Sun Jan 7 00:37:38 PST 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAGISel.cpp updated: 1.340 -> 1.341
---
Log message:

remove support for llvm.isunordered


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

 SelectionDAGISel.cpp |   22 ----------------------
 1 files changed, 22 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.340 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.341
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.340	Thu Jan  4 19:46:20 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Sun Jan  7 02:37:22 2007
@@ -843,22 +843,6 @@
       !InBlock(BOp->getOperand(1), CurBB->getBasicBlock())) {
     const BasicBlock *BB = CurBB->getBasicBlock();
     
-    if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Cond))
-      if ((II->getIntrinsicID() == Intrinsic::isunordered_f32 ||
-           II->getIntrinsicID() == Intrinsic::isunordered_f64) &&
-          // The operands of the setcc have to be in this block.  We don't know
-          // how to export them from some other block.  If this is the first
-          // block of the sequence, no exporting is needed.
-          (CurBB == CurMBB ||
-           (isExportableFromCurrentBlock(II->getOperand(1), BB) &&
-            isExportableFromCurrentBlock(II->getOperand(2), BB)))) {
-        SelectionDAGISel::CaseBlock CB(ISD::SETUO, II->getOperand(1),
-                                       II->getOperand(2), TBB, FBB, CurBB);
-        SwitchCases.push_back(CB);
-        return;
-      }
-        
-    
     // If the leaf of the tree is a comparison, merge the condition into 
     // the caseblock.
     if ((isa<ICmpInst>(Cond) || isa<FCmpInst>(Cond)) &&
@@ -2038,12 +2022,6 @@
     return 0;
   }
     
-  case Intrinsic::isunordered_f32:
-  case Intrinsic::isunordered_f64:
-    setValue(&I, DAG.getSetCC(MVT::i1,getValue(I.getOperand(1)),
-                              getValue(I.getOperand(2)), ISD::SETUO));
-    return 0;
-    
   case Intrinsic::sqrt_f32:
   case Intrinsic::sqrt_f64:
     setValue(&I, DAG.getNode(ISD::FSQRT,






More information about the llvm-commits mailing list