[llvm-commits] CVS: llvm/lib/Transforms/Utils/CodeExtractor.cpp
Devang Patel
dpatel at apple.com
Mon Jun 4 09:22:55 PDT 2007
Changes in directory llvm/lib/Transforms/Utils:
CodeExtractor.cpp updated: 1.54 -> 1.55
---
Log message:
Add basic block level interface to change immediate dominator
and create new node.
---
Diffs of the changes: (+2 -2)
CodeExtractor.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.54 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.55
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.54 Tue Apr 17 23:46:35 2007
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Mon Jun 4 11:22:33 2007
@@ -143,14 +143,14 @@
// blocks that dominate TIBB plus the new block itself.
if (EF) {
BasicBlock* idom = EF->getIDom(OldPred);
- DT->createNewNode(NewBB, DT->getNode(idom));
+ DT->createNewNode(NewBB, idom);
EF->addNewBlock(NewBB, idom);
// Additionally, NewBB replaces OldPred as the immediate dominator of blocks
Function *F = Header->getParent();
for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I)
if (EF->getIDom(I) == OldPred) {
- DT->changeImmediateDominator(DT->getNode(I), DT->getNode(NewBB));
+ DT->changeImmediateDominator(I, NewBB);
EF->setImmediateDominator(I, NewBB);
}
}
More information about the llvm-commits
mailing list