summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-06-10 02:08:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-06-10 02:08:20 +0000
commit2901371c32eb5a1bf1ef4074fb1236293245a2cd (patch)
tree58335b1a62fab54e7afd6c3d0dcbefa3fc8ff701 /llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
parent2c472ee18da4e699193327a2095b61801ce6632b (diff)
downloadbcm5719-llvm-2901371c32eb5a1bf1ef4074fb1236293245a2cd.tar.gz
bcm5719-llvm-2901371c32eb5a1bf1ef4074fb1236293245a2cd.zip
Delete code that's not safe.
llvm-svn: 105774
Diffstat (limited to 'llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp')
-rw-r--r--llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
index 691444cdc02..bd8be969926 100644
--- a/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
+++ b/llvm/lib/Target/ARM/Thumb2ITBlockPass.cpp
@@ -230,19 +230,6 @@ bool Thumb2ITBlockPass::InsertITBlock(MachineInstr *First, MachineInstr *Last) {
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;
}
OpenPOWER on IntegriCloud