1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Delete code that's not safe.

llvm-svn: 105774
This commit is contained in:
Evan Cheng 2010-06-10 02:08:20 +00:00
parent 7b0f786883
commit 3635f03b88

View File

@ -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;
}