[llvm-commits] CVS: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp CodeExtractor.cpp LoopSimplify.cpp
Devang Patel
dpatel at apple.com
Mon Jun 4 09:43:47 PDT 2007
Changes in directory llvm/lib/Transforms/Utils:
BreakCriticalEdges.cpp updated: 1.50 -> 1.51
CodeExtractor.cpp updated: 1.55 -> 1.56
LoopSimplify.cpp updated: 1.98 -> 1.99
---
Log message:
s/DominatorTree::createNewNode/DominatorTree::addNewBlock/g
---
Diffs of the changes: (+3 -4)
BreakCriticalEdges.cpp | 2 +-
CodeExtractor.cpp | 2 +-
LoopSimplify.cpp | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
diff -u llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.50 llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.51
--- llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp:1.50 Sun Jun 3 19:32:22 2007
+++ llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp Mon Jun 4 11:43:25 2007
@@ -209,7 +209,7 @@
// TINode is the immediate dominator for the new node.
//
if (TINode) { // Don't break unreachable code!
- DomTreeNode *NewBBNode = DT->createNewNode(NewBB, TINode);
+ DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, TIBB);
DomTreeNode *DestBBNode = 0;
// If NewBBDominatesDestBB hasn't been computed yet, do so with DT.
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.55 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.56
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.55 Mon Jun 4 11:22:33 2007
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Mon Jun 4 11:43:25 2007
@@ -143,7 +143,7 @@
// blocks that dominate TIBB plus the new block itself.
if (EF) {
BasicBlock* idom = EF->getIDom(OldPred);
- DT->createNewNode(NewBB, idom);
+ DT->addNewBlock(NewBB, idom);
EF->addNewBlock(NewBB, idom);
// Additionally, NewBB replaces OldPred as the immediate dominator of blocks
Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.98 llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.99
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.98 Sun Jun 3 19:32:22 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp Mon Jun 4 11:43:25 2007
@@ -778,10 +778,9 @@
}
assert(NewBBIDom && "No immediate dominator found??");
}
- DomTreeNode *NewBBIDomNode = DT->getNode(NewBBIDom);
// Create the new dominator tree node... and set the idom of NewBB.
- DomTreeNode *NewBBNode = DT->createNewNode(NewBB, NewBBIDomNode);
+ DomTreeNode *NewBBNode = DT->addNewBlock(NewBB, NewBBIDom);
// If NewBB strictly dominates other blocks, then it is now the immediate
// dominator of NewBBSucc. Update the dominator tree as appropriate.
More information about the llvm-commits
mailing list