mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user