summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SlotIndexes.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-25 18:01:30 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-04-25 18:01:30 +0000
commit01f201f484c66a88ea9062f04dcbc15cc69507ab (patch)
tree4a7f26376509c8bd113416e0d6dd7d0f3f50ef42 /llvm/lib/CodeGen/SlotIndexes.cpp
parentba5b0cc82e1b53b9302b04c26a29ec40ce6c502a (diff)
downloadbcm5719-llvm-01f201f484c66a88ea9062f04dcbc15cc69507ab.tar.gz
bcm5719-llvm-01f201f484c66a88ea9062f04dcbc15cc69507ab.zip
Remove more dead code.
llvm-svn: 155566
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
-rw-r--r--llvm/lib/CodeGen/SlotIndexes.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp
index 26cf2594416..c8c3fb37ad7 100644
--- a/llvm/lib/CodeGen/SlotIndexes.cpp
+++ b/llvm/lib/CodeGen/SlotIndexes.cpp
@@ -62,7 +62,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
assert(mi2iMap.empty() &&
"MachineInstr -> Index mapping non-empty at initial numbering?");
- functionSize = 0;
unsigned index = 0;
MBBRanges.resize(mf->getNumBlockIDs());
idx2MBBMap.reserve(mf->size());
@@ -89,8 +88,6 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
// Save this base index in the maps.
mi2iMap.insert(std::make_pair(mi, SlotIndex(&indexList.back(),
SlotIndex::Slot_Block)));
-
- ++functionSize;
}
// We insert one blank instructions between basic blocks.
OpenPOWER on IntegriCloud