summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-18 20:59:41 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-18 20:59:41 +0000
commit78eaf05fa72bd1376c0923329953fec20671b6b6 (patch)
tree68f0b1df051a9f784c36cf606efb6c0733f70d84 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentb97878a235a1fed6121f2ec5a066516d24ac09a0 (diff)
downloadbcm5719-llvm-78eaf05fa72bd1376c0923329953fec20671b6b6.tar.gz
bcm5719-llvm-78eaf05fa72bd1376c0923329953fec20671b6b6.zip
Tighten up the splice() API for bundled instructions.
Remove the instr_iterator versions of the splice() functions. It doesn't seem useful to be able to splice sequences of instructions that don't consist of full bundles. The normal splice functions that take MBB::iterator arguments are not changed, and they can move whole bundles around without any problems. llvm-svn: 170456
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 027f777fcf4..207f21579c7 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -826,19 +826,6 @@ MachineBasicBlock::insert(instr_iterator I, MachineInstr *MI) {
return Insts.insert(I, MI);
}
-void MachineBasicBlock::splice(MachineBasicBlock::iterator where,
- MachineBasicBlock *Other,
- MachineBasicBlock::iterator From) {
- if (From->isBundle()) {
- MachineBasicBlock::iterator To = llvm::next(From);
- Insts.splice(where.getInstrIterator(), Other->Insts,
- From.getInstrIterator(), To.getInstrIterator());
- return;
- }
-
- Insts.splice(where.getInstrIterator(), Other->Insts, From.getInstrIterator());
-}
-
/// removeFromParent - This method unlinks 'this' from the containing function,
/// and returns it, but does not delete it.
MachineBasicBlock *MachineBasicBlock::removeFromParent() {
OpenPOWER on IntegriCloud