Remove dead code.

llvm-svn: 41295
This commit is contained in:
Devang Patel 2007-08-22 21:07:41 +00:00
parent 798ba45c39
commit 4ad7c57729

View File

@ -641,7 +641,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
PredBlocks.push_back(P); PredBlocks.push_back(P);
} }
BasicBlock *NewDominator = NULL;
for(BasicBlock::iterator FBI = FrontierBB->begin(), FBE = FrontierBB->end(); for(BasicBlock::iterator FBI = FrontierBB->begin(), FBE = FrontierBB->end();
FBI != FBE; ++FBI) { FBI != FBE; ++FBI) {
if (PHINode *PN = dyn_cast<PHINode>(FBI)) { if (PHINode *PN = dyn_cast<PHINode>(FBI)) {
@ -650,10 +649,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
BasicBlock *P = *PI; BasicBlock *P = *PI;
PN->removeIncomingValue(P); 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 else
break; break;