mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Use an existing function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
757a3179b2
commit
e80fba0e6c
@ -747,16 +747,7 @@ MachineBasicBlock *ARMConstantIslands::SplitBlockBeforeInstr(MachineInstr *MI) {
|
||||
++NumSplit;
|
||||
|
||||
// Update the CFG. All succs of OrigBB are now succs of NewBB.
|
||||
while (!OrigBB->succ_empty()) {
|
||||
MachineBasicBlock *Succ = *OrigBB->succ_begin();
|
||||
OrigBB->removeSuccessor(Succ);
|
||||
NewBB->addSuccessor(Succ);
|
||||
|
||||
// This pass should be run after register allocation, so there should be no
|
||||
// PHI nodes to update.
|
||||
assert((Succ->empty() || !Succ->begin()->isPHI())
|
||||
&& "PHI nodes should be eliminated by now!");
|
||||
}
|
||||
NewBB->transferSuccessors(OrigBB);
|
||||
|
||||
// OrigBB branches to NewBB.
|
||||
OrigBB->addSuccessor(NewBB);
|
||||
|
Loading…
Reference in New Issue
Block a user