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 | 335b9a8ea9ea25f2c72533ab540aa9ca01594c44 (patch) | |
tree | 91cd33742cdfaacfe53d90b0fc74b2604455a356 /llvm/lib/CodeGen/SlotIndexes.cpp | |
parent | 943cdebb634399d4d6a3ef43c1397971757f5f65 (diff) | |
download | bcm5719-llvm-335b9a8ea9ea25f2c72533ab540aa9ca01594c44.tar.gz bcm5719-llvm-335b9a8ea9ea25f2c72533ab540aa9ca01594c44.zip |
Terminator gaps were unused. Might as well delete them.
llvm-svn: 114776
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SlotIndexes.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp index 1bc148f160b..4d362d55a4c 100644 --- a/llvm/lib/CodeGen/SlotIndexes.cpp +++ b/llvm/lib/CodeGen/SlotIndexes.cpp @@ -61,7 +61,6 @@ void SlotIndexes::releaseMemory() { mi2iMap.clear(); mbb2IdxMap.clear(); idx2MBBMap.clear(); - terminatorGaps.clear(); clearList(); } @@ -112,13 +111,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) { if (mi->isDebugValue()) continue; - if (miItr == mbb->getFirstTerminator()) { - push_back(createEntry(0, index)); - terminatorGaps.insert( - std::make_pair(mbb, SlotIndex(back(), SlotIndex::PHI_BIT))); - index += SlotIndex::NUM; - } - // Insert a store index for the instr. push_back(createEntry(mi, index)); @@ -135,13 +127,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) { index += (Slots + 1) * SlotIndex::NUM; } - if (mbb->getFirstTerminator() == mbb->end()) { - push_back(createEntry(0, index)); - terminatorGaps.insert( - std::make_pair(mbb, SlotIndex(back(), SlotIndex::PHI_BIT))); - index += SlotIndex::NUM; - } - // One blank instruction at the end. push_back(createEntry(0, index)); @@ -179,7 +164,7 @@ void SlotIndexes::renumberIndexes() { curEntry->setIndex(index); if (curEntry->getInstr() == 0) { - // MBB start entry or terminator gap. Just step index by 1. + // MBB start entry. Just step index by 1. index += SlotIndex::NUM; } else { |