diff options
| author | Devang Patel <dpatel@apple.com> | 2007-08-01 23:24:50 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2007-08-01 23:24:50 +0000 |
| commit | 2f2e519083d8ac06f4e0a980b43fa78a3aa727f4 (patch) | |
| tree | 785327f6ebc1cef1cae29b88db0e6d63d8f755d2 /lib/VMCore/Dominators.cpp | |
| parent | caf778ab3b57f978d430ff9f56cfa7d2dec5aabb (diff) | |
Undo previous check-in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
| -rw-r--r-- | lib/VMCore/Dominators.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 91b422c704..9b5ee1bb40 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -627,15 +627,6 @@ void DominanceFrontier::splitBlock(BasicBlock *NewBB) { if (!DT.dominates(NewBB, NewBBSucc)) NewBBDominatesNewBBSucc = false; - // NewBBSucc inherites original NewBB frontier. - DominanceFrontier::iterator NewBBI = find(NewBB); - if (NewBBI != end()) { - DominanceFrontier::DomSetType NewBBSet = NewBBI->second; - DominanceFrontier::DomSetType NewBBSuccSet; - NewBBSuccSet.insert(NewBBSet.begin(), NewBBSet.end()); - addBasicBlock(NewBBSucc, NewBBSuccSet); - } - // If NewBB dominates NewBBSucc, then DF(NewBB) is now going to be the // DF(PredBlocks[0]) without the stuff that the new block does not dominate // a predecessor of. @@ -657,6 +648,7 @@ void DominanceFrontier::splitBlock(BasicBlock *NewBB) { ++SetI; } + DominanceFrontier::iterator NewBBI = find(NewBB); if (NewBBI != end()) { DominanceFrontier::DomSetType NewBBSet = NewBBI->second; NewBBSet.insert(Set.begin(), Set.end()); |
