diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-06-10 02:08:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-06-10 02:08:20 +0000 |
commit | aa4b5429ef0c174dbff52b6e67b78c0a68f2025e (patch) | |
tree | aec297016233df90db5c8419ed7e4d2afee95f9d /lib/Target/ARM/Thumb2ITBlockPass.cpp | |
parent | 4b425a8caa86f1932247413b42ea6f94e9222b86 (diff) |
Delete code that's not safe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Thumb2ITBlockPass.cpp')
-rw-r--r-- | lib/Target/ARM/Thumb2ITBlockPass.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/ARM/Thumb2ITBlockPass.cpp b/lib/Target/ARM/Thumb2ITBlockPass.cpp index 691444cdc0..bd8be96992 100644 --- a/lib/Target/ARM/Thumb2ITBlockPass.cpp +++ b/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; } |