mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
reduce nesting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a0be17c08
commit
b0433d4b2f
@ -254,13 +254,13 @@ BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) {
|
||||
assert(SP == BB && "CFG broken");
|
||||
SP = NULL;
|
||||
return SplitBlock(Succ, Succ->begin(), P);
|
||||
} else {
|
||||
// Otherwise, if BB has a single successor, split it at the bottom of the
|
||||
// block.
|
||||
assert(BB->getTerminator()->getNumSuccessors() == 1 &&
|
||||
"Should have a single succ!");
|
||||
return SplitBlock(BB, BB->getTerminator(), P);
|
||||
}
|
||||
|
||||
// Otherwise, if BB has a single successor, split it at the bottom of the
|
||||
// block.
|
||||
assert(BB->getTerminator()->getNumSuccessors() == 1 &&
|
||||
"Should have a single succ!");
|
||||
return SplitBlock(BB, BB->getTerminator(), P);
|
||||
}
|
||||
|
||||
/// SplitBlock - Split the specified block at the specified instruction - every
|
||||
|
Loading…
Reference in New Issue
Block a user