[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp
Devang Patel
dpatel at apple.com
Thu Sep 14 14:43:41 PDT 2006
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.74 -> 1.75
---
Log message:
Undo previous check-in.
Reintroduce recursive assignDFSNumber().
---
Diffs of the changes: (+0 -33)
Dominators.cpp | 33 ---------------------------------
1 files changed, 33 deletions(-)
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.74 llvm/lib/VMCore/Dominators.cpp:1.75
--- llvm/lib/VMCore/Dominators.cpp:1.74 Wed Sep 13 20:27:42 2006
+++ llvm/lib/VMCore/Dominators.cpp Thu Sep 14 16:43:24 2006
@@ -890,39 +890,6 @@
updateDFSNumbers ();
}
-// Walk ETNode and its children using DFS algorithm and assign
-// DFSNumIn and DFSNumOut numbers for each node.
-void ETNode::assignDFSNumber(int &num) {
-
- std::vector<ETNode *> DFSInStack;
- std::set<ETNode *> visited;
-
- DFSInStack.push_back(this);
-
- visited.insert(this);
-
- while(!DFSInStack.empty()) {
- ETNode *Parent = DFSInStack.back();
- DFSInStack.pop_back();
- Parent->DFSNumIn = num++;
- Parent->DFSNumOut = Parent->DFSNumIn + 1;
-
- ETNode *son = Parent->Son;
- if (son && visited.count(son) == 0) {
-
- DFSInStack.push_back(son);
- son->DFSNumIn = Parent->DFSNumIn + 1;
- visited.insert(son);
-
- for (ETNode *s = son->Right; s != son; s = s->Right) {
- DFSInStack.push_back(s);
- s->DFSNumIn = Parent->DFSNumIn + 1;
- visited.insert(s);
- }
- }
- }
-}
-
//===----------------------------------------------------------------------===//
// ETForestBase Implementation
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list