Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.107 -> 1.108
---
Log message:

Make SelectionDAG::RemoveDeadNodes iterative instead of recursive, which
also make it simpler.


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

 SelectionDAG.h |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.107 
llvm/include/llvm/CodeGen/SelectionDAG.h:1.108
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.107      Wed Aug  2 16:58:44 2006
+++ llvm/include/llvm/CodeGen/SelectionDAG.h    Fri Aug  4 12:45:20 2006
@@ -105,10 +105,8 @@
   void Legalize();
 
   /// RemoveDeadNodes - This method deletes all unreachable nodes in the
-  /// SelectionDAG, including nodes (like loads) that have uses of their token
-  /// chain but no other uses and no side effect.  If a node is passed in as an
-  /// argument, it is used as the seed for node deletion.
-  void RemoveDeadNodes(SDNode *N = 0);
+  /// SelectionDAG.
+  void RemoveDeadNodes();
 
   SDOperand getString(const std::string &Val);
   SDOperand getConstant(uint64_t Val, MVT::ValueType VT);
@@ -447,7 +445,6 @@
   SDNode **FindModifiedNodeSlot(SDNode *N, SDOperand Op1, SDOperand Op2);
   SDNode **FindModifiedNodeSlot(SDNode *N, const std::vector<SDOperand> &Ops);
 
-  void DestroyDeadNode(SDNode *N);
   void DeleteNodeNotInCSEMaps(SDNode *N);
   void setNodeValueTypes(SDNode *N, std::vector<MVT::ValueType> &RetVals);
   void setNodeValueTypes(SDNode *N, MVT::ValueType VT1, MVT::ValueType VT2);



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

Reply via email to