Use DominatorTree::properlyDominates instead of dominates with an

explicit inequality check.

llvm-svn: 109401
This commit is contained in:
Dan Gohman 2010-07-26 17:37:36 +00:00
parent 31f73ef210
commit 65b257c9d2
1 changed files with 1 additions and 1 deletions

View File

@ -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();