forked from OSchip/llvm-project
Use DominatorTree::properlyDominates instead of dominates with an
explicit inequality check. llvm-svn: 109401
This commit is contained in:
parent
31f73ef210
commit
65b257c9d2
|
@ -799,7 +799,7 @@ void LoopIndexSplit::moveExitCondition(BasicBlock *CondBB, BasicBlock *ActiveBB,
|
|||
// the dominance frontiers.
|
||||
for (Loop::block_iterator I = LP->block_begin(), E = LP->block_end();
|
||||
I != E; ++I) {
|
||||
if (*I == CondBB || !DT->dominates(CondBB, *I)) continue;
|
||||
if (!DT->properlyDominates(CondBB, *I)) continue;
|
||||
DominanceFrontier::iterator BBDF = DF->find(*I);
|
||||
DominanceFrontier::DomSetType::iterator DomSetI = BBDF->second.begin();
|
||||
DominanceFrontier::DomSetType::iterator DomSetE = BBDF->second.end();
|
||||
|
|
Loading…
Reference in New Issue