SelectionDAG::AssignNodeIds is unused.
authorDan Gohman <gohman@apple.com>
Tue, 15 Jul 2008 18:29:32 +0000 (18:29 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 15 Jul 2008 18:29:32 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53636 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index c370c246e3cec1ab2fb8413bb678cb13bc447d16..636e36d5913ee75d06e594fa58a9a719a6e67d16 100644 (file)
@@ -565,10 +565,6 @@ public:
   void ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To,
                                  DAGUpdateListener *UpdateListener = 0);
 
-  /// AssignNodeIds - Assign a unique node id for each node in the DAG based on
-  /// their allnodes order. It returns the maximum id.
-  unsigned AssignNodeIds();
-
   /// AssignTopologicalOrder - Assign a unique node id for each node in the DAG
   /// based on their topological order. It returns the maximum id and a vector
   /// of the SDNodes* in assigned order by reference.
index 4c951ff118dea2ade91f4b333da4fcd3e4f95dc6..f7937137da40eaf50e17e3c5f1cba79f1524285c 100644 (file)
@@ -4228,17 +4228,6 @@ void SelectionDAG::ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To,
   }
 }
 
-/// AssignNodeIds - Assign a unique node id for each node in the DAG based on
-/// their allnodes order. It returns the maximum id.
-unsigned SelectionDAG::AssignNodeIds() {
-  unsigned Id = 0;
-  for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){
-    SDNode *N = I;
-    N->setNodeId(Id++);
-  }
-  return Id;
-}
-
 /// AssignTopologicalOrder - Assign a unique node id for each node in the DAG
 /// based on their topological order. It returns the maximum id and a vector
 /// of the SDNodes* in assigned order by reference.