summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Dominators.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-07-16 05:59:45 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-07-16 05:59:45 +0000
commit3d84c9c793d962b4a1e92ddf148708ddc63fe593 (patch)
treeeafc5918a95efcf5142a816b244ed9f47001a844 /llvm/lib/VMCore/Dominators.cpp
parentbd7c9f701b3534075d746330162517cd72f47f3b (diff)
downloadbcm5719-llvm-3d84c9c793d962b4a1e92ddf148708ddc63fe593.tar.gz
bcm5719-llvm-3d84c9c793d962b4a1e92ddf148708ddc63fe593.zip
LoopSimplify does not update domfrontier correctly.
This fixes PR7649. llvm-svn: 108513
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r--llvm/lib/VMCore/Dominators.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp
index ef830337140..58ce05c3bfb 100644
--- a/llvm/lib/VMCore/Dominators.cpp
+++ b/llvm/lib/VMCore/Dominators.cpp
@@ -148,11 +148,11 @@ void DominanceFrontier::splitBlock(BasicBlock *NewBB) {
}
// 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
+ // DF(NewBBSucc) without the stuff that the new block does not dominate
// a predecessor of.
DominatorTree &DT = getAnalysis<DominatorTree>();
if (DT.dominates(NewBB, NewBBSucc)) {
- DominanceFrontier::iterator DFI = find(PredBlocks[0]);
+ DominanceFrontier::iterator DFI = find(NewBBSucc);
if (DFI != end()) {
DominanceFrontier::DomSetType Set = DFI->second;
// Filter out stuff in Set that we do not dominate a predecessor of.
OpenPOWER on IntegriCloud