diff options
author | Owen Anderson <resistor@mac.com> | 2007-04-18 04:46:35 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-04-18 04:46:35 +0000 |
commit | ee6dcaf906fd92aa041cafde3bd2d19de63abc5f (patch) | |
tree | 9bc7a3c244c7d478b68d1fc8539118703ae0e37a /lib | |
parent | 26c37b1fdc4bb3d94a5ae2a1505977858b7ddcb4 (diff) | |
download | external_llvm-ee6dcaf906fd92aa041cafde3bd2d19de63abc5f.zip external_llvm-ee6dcaf906fd92aa041cafde3bd2d19de63abc5f.tar.gz external_llvm-ee6dcaf906fd92aa041cafde3bd2d19de63abc5f.tar.bz2 |
Use new ETForest accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Utils/CodeExtractor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index 656e6dc..ce00e0e 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -142,14 +142,14 @@ void CodeExtractor::severSplitPHINodes(BasicBlock *&Header) { // Okay, update dominator sets. The blocks that dominate the new one are the // blocks that dominate TIBB plus the new block itself. if (EF) { - DominatorTree::Node* idom = DT->getNode(OldPred)->getIDom(); - DT->createNewNode(NewBB, idom); - EF->addNewBlock(NewBB, idom->getBlock()); + BasicBlock* idom = EF->getIDom(OldPred); + DT->createNewNode(NewBB, DT->getNode(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 (DT->getNode(I)->getIDom()->getBlock() == OldPred) { + if (EF->getIDom(I) == OldPred) { DT->changeImmediateDominator(DT->getNode(I), DT->getNode(NewBB)); EF->setImmediateDominator(I, NewBB); } |