aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
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
commit3e0b870def750929512ebe86e9b589fbab9d538e (patch)
treeb130cf7ef155b0ca714bee482453bd477941f3d3 /lib/Transforms/Utils
parent79fc865ccb0cbe6438851c00ba5ad855ad0a8d2f (diff)
downloadexternal_llvm-3e0b870def750929512ebe86e9b589fbab9d538e.zip
external_llvm-3e0b870def750929512ebe86e9b589fbab9d538e.tar.gz
external_llvm-3e0b870def750929512ebe86e9b589fbab9d538e.tar.bz2
Fix bug updating dominators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index 798dac1..53c8542 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/lib/Transforms/Utils/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);
}