diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-24 23:58:56 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-09-24 23:58:56 +0000 |
commit | 1803b37bad85cca19a15c0040979719240f48626 (patch) | |
tree | 9a67de6b01aef55d92f73db55aad6a0261e6f993 /include/llvm/CodeGen/SlotIndexes.h | |
parent | bd30ce4311e158f1bfc6c95987ffbbad2193fef3 (diff) | |
download | llvm-1803b37bad85cca19a15c0040979719240f48626.tar.gz llvm-1803b37bad85cca19a15c0040979719240f48626.tar.bz2 llvm-1803b37bad85cca19a15c0040979719240f48626.tar.xz |
Terminator gaps were unused. Might as well delete them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SlotIndexes.h')
-rw-r--r-- | include/llvm/CodeGen/SlotIndexes.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/llvm/CodeGen/SlotIndexes.h b/include/llvm/CodeGen/SlotIndexes.h index 88044c7242..e069f896ae 100644 --- a/include/llvm/CodeGen/SlotIndexes.h +++ b/include/llvm/CodeGen/SlotIndexes.h @@ -405,9 +405,6 @@ namespace llvm { /// and MBB id. std::vector<IdxMBBPair> idx2MBBMap; - typedef DenseMap<const MachineBasicBlock*, SlotIndex> TerminatorGapsMap; - TerminatorGapsMap terminatorGaps; - // IndexListEntry allocator. BumpPtrAllocator ileAllocator; @@ -579,14 +576,6 @@ namespace llvm { return itr->second.second; } - /// Returns the terminator gap for the given index. - SlotIndex getTerminatorGap(const MachineBasicBlock *mbb) { - TerminatorGapsMap::iterator itr = terminatorGaps.find(mbb); - assert(itr != terminatorGaps.end() && - "All MBBs should have terminator gaps in their indexes."); - return itr->second; - } - /// Returns the basic block which the given index falls in. MachineBasicBlock* getMBBFromIndex(SlotIndex index) const { std::vector<IdxMBBPair>::const_iterator I = @@ -789,7 +778,6 @@ namespace llvm { MachineFunction::iterator nextMBB = llvm::next(MachineFunction::iterator(mbb)); IndexListEntry *startEntry = createEntry(0, 0); - IndexListEntry *terminatorEntry = createEntry(0, 0); IndexListEntry *nextEntry = 0; if (nextMBB == mbb->getParent()->end()) { @@ -799,15 +787,10 @@ namespace llvm { } insert(nextEntry, startEntry); - insert(nextEntry, terminatorEntry); SlotIndex startIdx(startEntry, SlotIndex::LOAD); - SlotIndex terminatorIdx(terminatorEntry, SlotIndex::PHI_BIT); SlotIndex endIdx(nextEntry, SlotIndex::LOAD); - terminatorGaps.insert( - std::make_pair(mbb, terminatorIdx)); - mbb2IdxMap.insert( std::make_pair(mbb, std::make_pair(startIdx, endIdx))); |