forked from OSchip/llvm-project
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:
parent
a97abeb342
commit
2dd1c8d8ce
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue