mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 11:39: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);
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user