reduce indentation by using 'continue', no functionality change.
llvm-svn: 62477
This commit is contained in:
parent
54f0c61d71
commit
e381d7026f
|
@ -221,12 +221,14 @@ static bool TryToSimplifyUncondBranchFromEmptyBlock(BasicBlock *BB,
|
||||||
|
|
||||||
// Move all PHI nodes in BB to Succ if they are alive, otherwise
|
// Move all PHI nodes in BB to Succ if they are alive, otherwise
|
||||||
// delete them.
|
// delete them.
|
||||||
while (PHINode *PN = dyn_cast<PHINode>(&BB->front()))
|
while (PHINode *PN = dyn_cast<PHINode>(&BB->front())) {
|
||||||
if (PN->use_empty()) {
|
if (PN->use_empty()) {
|
||||||
// Just remove the dead phi. This happens if Succ's PHIs were the only
|
// Just remove the dead phi. This happens if Succ's PHIs were the only
|
||||||
// users of the PHI nodes.
|
// users of the PHI nodes.
|
||||||
PN->eraseFromParent();
|
PN->eraseFromParent();
|
||||||
} else {
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// The instruction is alive, so this means that BB must dominate all
|
// The instruction is alive, so this means that BB must dominate all
|
||||||
// predecessors of Succ (Since all uses of the PN are after its
|
// predecessors of Succ (Since all uses of the PN are after its
|
||||||
// definition, so in Succ or a block dominated by Succ. If a predecessor
|
// definition, so in Succ or a block dominated by Succ. If a predecessor
|
||||||
|
|
Loading…
Reference in New Issue