Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.136 -> 1.137
---
Log message:

When SimplifySetCC was moved to the DAGCombiner, it was never removed from
SelectionDAG and it has since bitrotted.  Remove the copy from SelectionDAG.
Next, remove the constant folding piece of DAGCombiner::SimplifySetCC into
a new FoldSetCC method which can be used by getNode() and SimplifySetCC.

This fixes obscure bugs.



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

 SelectionDAG.h |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.136 
llvm/include/llvm/CodeGen/SelectionDAG.h:1.137
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.136      Fri Oct 13 16:08:54 2006
+++ llvm/include/llvm/CodeGen/SelectionDAG.h    Fri Oct 13 19:41:01 2006
@@ -449,6 +449,10 @@
 
   void dump() const;
 
+  /// FoldSetCC - Constant fold a setcc to true or false.
+  SDOperand FoldSetCC(MVT::ValueType VT, SDOperand N1,
+                      SDOperand N2, ISD::CondCode Cond);
+  
 private:
   void RemoveNodeFromCSEMaps(SDNode *N);
   SDNode *AddNonLeafNodeToCSEMaps(SDNode *N);
@@ -460,11 +464,6 @@
 
   void DeleteNodeNotInCSEMaps(SDNode *N);
   
-  /// SimplifySetCC - Try to simplify a setcc built with the specified 
operands 
-  /// and cc.  If unable to simplify it, return a null SDOperand.
-  SDOperand SimplifySetCC(MVT::ValueType VT, SDOperand N1,
-                          SDOperand N2, ISD::CondCode Cond);
-  
   // List of non-single value types.
   std::list<std::vector<MVT::ValueType> > VTList;
   



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to