mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Remove more dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -137,13 +137,6 @@ namespace llvm {
|
|||||||
return reservedRegs_.test(reg);
|
return reservedRegs_.test(reg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getScaledIntervalSize - get the size of an interval in "units,"
|
|
||||||
/// where every function is composed of one thousand units. This
|
|
||||||
/// measure scales properly with empty index slots in the function.
|
|
||||||
double getScaledIntervalSize(LiveInterval& I) {
|
|
||||||
return (1000.0 * I.getSize()) / indexes_->getIndexesLength();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getApproximateInstructionCount - computes an estimate of the number
|
/// getApproximateInstructionCount - computes an estimate of the number
|
||||||
/// of instructions in a given LiveInterval.
|
/// of instructions in a given LiveInterval.
|
||||||
unsigned getApproximateInstructionCount(LiveInterval& I) {
|
unsigned getApproximateInstructionCount(LiveInterval& I) {
|
||||||
|
|||||||
@@ -344,7 +344,6 @@ namespace llvm {
|
|||||||
IndexList indexList;
|
IndexList indexList;
|
||||||
|
|
||||||
MachineFunction *mf;
|
MachineFunction *mf;
|
||||||
unsigned functionSize;
|
|
||||||
|
|
||||||
typedef DenseMap<const MachineInstr*, SlotIndex> Mi2IndexMap;
|
typedef DenseMap<const MachineInstr*, SlotIndex> Mi2IndexMap;
|
||||||
Mi2IndexMap mi2iMap;
|
Mi2IndexMap mi2iMap;
|
||||||
@@ -402,19 +401,6 @@ namespace llvm {
|
|||||||
return SlotIndex(&indexList.back(), 0);
|
return SlotIndex(&indexList.back(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the distance between the highest and lowest indexes allocated
|
|
||||||
/// so far.
|
|
||||||
unsigned getIndexesLength() const {
|
|
||||||
assert(indexList.front().getIndex() == 0 &&
|
|
||||||
"Initial index isn't zero?");
|
|
||||||
return indexList.back().getIndex();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the number of instructions in the function.
|
|
||||||
unsigned getFunctionSize() const {
|
|
||||||
return functionSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns true if the given machine instr is mapped to an index,
|
/// Returns true if the given machine instr is mapped to an index,
|
||||||
/// otherwise returns false.
|
/// otherwise returns false.
|
||||||
bool hasIndex(const MachineInstr *instr) const {
|
bool hasIndex(const MachineInstr *instr) const {
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
assert(mi2iMap.empty() &&
|
assert(mi2iMap.empty() &&
|
||||||
"MachineInstr -> Index mapping non-empty at initial numbering?");
|
"MachineInstr -> Index mapping non-empty at initial numbering?");
|
||||||
|
|
||||||
functionSize = 0;
|
|
||||||
unsigned index = 0;
|
unsigned index = 0;
|
||||||
MBBRanges.resize(mf->getNumBlockIDs());
|
MBBRanges.resize(mf->getNumBlockIDs());
|
||||||
idx2MBBMap.reserve(mf->size());
|
idx2MBBMap.reserve(mf->size());
|
||||||
@@ -89,8 +88,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
// Save this base index in the maps.
|
// Save this base index in the maps.
|
||||||
mi2iMap.insert(std::make_pair(mi, SlotIndex(&indexList.back(),
|
mi2iMap.insert(std::make_pair(mi, SlotIndex(&indexList.back(),
|
||||||
SlotIndex::Slot_Block)));
|
SlotIndex::Slot_Block)));
|
||||||
|
|
||||||
++functionSize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We insert one blank instructions between basic blocks.
|
// We insert one blank instructions between basic blocks.
|
||||||
|
|||||||
Reference in New Issue
Block a user