Fix another dominator update bug. These bugs keep getting exposed because GCSE

keeps finding more code motion opportunities now that the dominators are correct!

llvm-svn: 11142
This commit is contained in:
Chris Lattner 2004-02-05 23:20:59 +00:00
parent a97abeb342
commit 2dd1c8d8ce
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
if (NewBBDominatesNewBBSucc)
for (pred_iterator PI = pred_begin(NewBBSucc), E = pred_end(NewBBSucc);
PI != E; ++PI)
if (*PI != NewBB && !DS.dominates(OnePred, *PI)) {
if (*PI != NewBB && !DS.dominates(NewBBSucc, *PI)) {
NewBBDominatesNewBBSucc = false;
break;
}