summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Dominators.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-08-01 23:24:50 +0000
committerDevang Patel <dpatel@apple.com>2007-08-01 23:24:50 +0000
commit34890b2f27a31a388050fda807b769a1c9948ee0 (patch)
tree1e2b5de7882a6216f51972add45a208d8681f149 /llvm/lib/VMCore/Dominators.cpp
parent58c3c309210db7fcdb957a5c37e5d3c94c81527f (diff)
downloadbcm5719-llvm-34890b2f27a31a388050fda807b769a1c9948ee0.tar.gz
bcm5719-llvm-34890b2f27a31a388050fda807b769a1c9948ee0.zip
Undo previous check-in.
llvm-svn: 40698
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r--llvm/lib/VMCore/Dominators.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp
index 91b422c7044..9b5ee1bb40c 100644
--- a/llvm/lib/VMCore/Dominators.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud