summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-05 22:33:26 +0000
committerChris Lattner <sabre@nondot.org>2004-02-05 22:33:26 +0000
commitc0c953f0bce5a25c1713867a8a04f4d4b320f13e (patch)
treed8162000ae3b7d08619486fd791d30027907998e /llvm/lib
parentf978c421e56dc77bc46d4e24e2c38947386253ac (diff)
downloadbcm5719-llvm-c0c953f0bce5a25c1713867a8a04f4d4b320f13e.tar.gz
bcm5719-llvm-c0c953f0bce5a25c1713867a8a04f4d4b320f13e.zip
Fix bug updating dominators
llvm-svn: 11140
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp
index 798dac10f26..53c8542b143 100644
--- a/llvm/lib/Transforms/Scalar/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopSimplify.cpp
@@ -533,12 +533,12 @@ void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
DS.addBasicBlock(NewBB, NewBBDomSet);
// If NewBB dominates some blocks, then it will dominate all blocks that
- // PredBlocks[0] used to except for PredBlocks[0] itself.
+ // NewBBSucc does.
if (NewBBDominatesNewBBSucc) {
BasicBlock *PredBlock = PredBlocks[0];
Function *F = NewBB->getParent();
for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I)
- if (DS.properlyDominates(PredBlock, I))
+ if (DS.dominates(NewBBSucc, I))
DS.addDominator(I, NewBB);
}
OpenPOWER on IntegriCloud