diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-14 02:24:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-14 02:24:55 +0000 |
commit | 07293da97ebf4028f95ba0b9c0a6f200b4c03ebc (patch) | |
tree | 0917798ad23681a01f9ac64d427542f60a4d9a14 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | ee95d4c61cba2d8d51a92db962d51d24bb37b23b (diff) | |
download | llvm-07293da97ebf4028f95ba0b9c0a6f200b4c03ebc.zip llvm-07293da97ebf4028f95ba0b9c0a6f200b4c03ebc.tar.gz llvm-07293da97ebf4028f95ba0b9c0a6f200b4c03ebc.tar.bz2 |
eliminate InvalidateLabel and LabelIDList from MMI and replace
them with a counter.
llvm-svn: 98462
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 7e27bf5..13ae43d 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -105,17 +105,6 @@ void BranchFolder::RemoveDeadBlock(MachineBasicBlock *MBB) { while (!MBB->succ_empty()) MBB->removeSuccessor(MBB->succ_end()-1); - // If there are any labels in the basic block, unregister them from - // MachineModuleInfo. - if (MMI && !MBB->empty()) { - for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); - I != E; ++I) { - if (I->isLabel()) - // The label ID # is always operand #0, an immediate. - MMI->InvalidateLabel(I->getOperand(0).getImm()); - } - } - // Remove the block. MF->erase(MBB); } |