mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
Remove dead code.
llvm-svn: 41295
This commit is contained in:
parent
798ba45c39
commit
4ad7c57729
@ -641,7 +641,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
|
||||
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)) {
|
||||
@ -650,10 +649,6 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user