mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-20 12:31:40 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a24d918063
commit
40fc353a0d
@ -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…
x
Reference in New Issue
Block a user