[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp
Owen Anderson
resistor at mac.com
Sun Apr 15 16:14:53 PDT 2007
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.95 -> 1.96
---
Log message:
Tabs -> Spaces
---
Diffs of the changes: (+7 -7)
Dominators.cpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.95 llvm/lib/VMCore/Dominators.cpp:1.96
--- llvm/lib/VMCore/Dominators.cpp:1.95 Sun Apr 15 03:47:27 2007
+++ llvm/lib/VMCore/Dominators.cpp Sun Apr 15 18:14:18 2007
@@ -210,8 +210,8 @@
}
void DominatorTree::calculate(Function& F) {
- BasicBlock* Root = Roots[0];
-
+ BasicBlock* Root = Roots[0];
+
Nodes[Root] = RootNode = new Node(Root, 0); // Add a node for the root...
Vertex.push_back(0);
@@ -260,7 +260,7 @@
// Loop over all of the reachable blocks in the function...
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
if (BasicBlock *ImmDom = getIDom(I)) { // Reachable block.
- Node *&BBNode = Nodes[I];
+ Node *&BBNode = Nodes[I];
if (!BBNode) { // Haven't calculated this node yet?
// Get or calculate the node for the immediate dominator
Node *IDomNode = getNodeForBlock(ImmDom);
@@ -273,7 +273,7 @@
// Free temporary memory used to construct idom's
Info.clear();
- IDoms.clear();
+ IDoms.clear();
std::vector<BasicBlock*>().swap(Vertex);
}
@@ -283,8 +283,8 @@
for (NodeMapType::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I)
delete I->second;
Nodes.clear();
- IDoms.clear();
- Roots.clear();
+ IDoms.clear();
+ Roots.clear();
RootNode = 0;
}
@@ -343,7 +343,7 @@
bool DominatorTree::runOnFunction(Function &F) {
reset(); // Reset from the last time we were run...
- Roots.push_back(&F.getEntryBlock());
+ Roots.push_back(&F.getEntryBlock());
calculate(F);
return false;
}
More information about the llvm-commits
mailing list