mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-28 06:37:14 +00:00
Delete code that's not safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b425a8caa
commit
aa4b5429ef
@ -230,19 +230,6 @@ bool Thumb2ITBlockPass::InsertITBlock(MachineInstr *First, MachineInstr *Last) {
|
|||||||
MBBI = E;
|
MBBI = E;
|
||||||
}
|
}
|
||||||
} while (MBBI != E);
|
} while (MBBI != E);
|
||||||
|
|
||||||
// Insert a new block for consecutive predicated instructions.
|
|
||||||
MachineFunction *MF = MBB->getParent();
|
|
||||||
MachineBasicBlock *NewMBB = MF->CreateMachineBasicBlock(MBB->getBasicBlock());
|
|
||||||
MachineFunction::iterator InsertPos = MBB;
|
|
||||||
MF->insert(++InsertPos, NewMBB);
|
|
||||||
|
|
||||||
// Move all the successors of this block to the specified block.
|
|
||||||
NewMBB->transferSuccessors(MBB);
|
|
||||||
|
|
||||||
// Add an edge from CurMBB to NewMBB for the fall-through.
|
|
||||||
MBB->addSuccessor(NewMBB);
|
|
||||||
NewMBB->splice(NewMBB->end(), MBB, ++MBBI, MBB->end());
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user