diff options
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 4 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index c370c246e3..636e36d591 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -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. diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4c951ff118..f7937137da 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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. |