PredBlocks.push_back(P);
}
- BasicBlock *NewDominator = NULL;
for(BasicBlock::iterator FBI = FrontierBB->begin(), FBE = FrontierBB->end();
FBI != FBE; ++FBI) {
if (PHINode *PN = dyn_cast<PHINode>(FBI)) {
BasicBlock *P = *PI;
PN->removeIncomingValue(P);
}
- // If we have not identified new dominator then see if we can identify
- // one based on remaining incoming PHINode values.
- if (NewDominator == NULL && PN->getNumIncomingValues() == 1)
- NewDominator = PN->getIncomingBlock(0);
}
else
break;