aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/InstructionWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-01 01:50:31 +0000
committerChris Lattner <sabre@nondot.org>2004-02-01 01:50:31 +0000
commitfff663b47a5da518bf1dc56f8f8748e19b9cb1f7 (patch)
tree38de2068d5f933cc662ee9778ea76f1eee8f6d1a /lib/Bytecode/Writer/InstructionWriter.cpp
parent4f67b8664889d9e93b452a9a5f099d41d1bd235a (diff)
Remove all of the annoying statistics now that I'm finished (for the near
term) working on bytecode size stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/InstructionWriter.cpp')
-rw-r--r--lib/Bytecode/Writer/InstructionWriter.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/Bytecode/Writer/InstructionWriter.cpp b/lib/Bytecode/Writer/InstructionWriter.cpp
index b93a812d52..4b845996bf 100644
--- a/lib/Bytecode/Writer/InstructionWriter.cpp
+++ b/lib/Bytecode/Writer/InstructionWriter.cpp
@@ -20,26 +20,6 @@
#include <algorithm>
using namespace llvm;
-static Statistic<>
-NumInstrs("bytecodewriter", "Number of instructions");
-static Statistic<>
-NumOversizedInstrs("bytecodewriter", "Number of oversized instructions");
-static Statistic<>
-BytesOversizedInstrs("bytecodewriter", "Bytes of oversized instructions");
-
-static Statistic<>
-NumHugeOperandInstrs("bytecodewriter", "Number of instructions with > 3 operands");
-static Statistic<>
-NumOversized1OpInstrs("bytecodewriter", "Number of oversized 1 operand instrs");
-static Statistic<>
-NumOversized2OpInstrs("bytecodewriter", "Number of oversized 2 operand instrs");
-static Statistic<>
-NumOversized3OpInstrs("bytecodewriter", "Number of oversized 3 operand instrs");
-
-static Statistic<>
-NumOversidedBecauseOfTypes("bytecodewriter", "Number of oversized instructions because of their type");
-
-
typedef unsigned char uchar;
// outputInstructionFormat0 - Output those wierd instructions that have a large
@@ -50,9 +30,6 @@ typedef unsigned char uchar;
static void outputInstructionFormat0(const Instruction *I, unsigned Opcode,
const SlotCalculator &Table,
unsigned Type, std::deque<uchar> &Out) {
- NumOversizedInstrs++;
- BytesOversizedInstrs -= Out.size();
-
// Opcode must have top two bits clear...
output_vbr(Opcode << 2, Out); // Instruction Opcode ID
output_vbr(Type, Out); // Result type
@@ -78,7 +55,6 @@ static void outputInstructionFormat0(const Instruction *I, unsigned Opcode,
}
align32(Out); // We must maintain correct alignment!
- BytesOversizedInstrs += Out.size();
}
@@ -281,8 +257,6 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
}
}
- ++NumInstrs;
-
// Decide which instruction encoding to use. This is determined primarily by
// the number of operands, and secondarily by whether or not the max operand
// will fit into the instruction encoding. More operands == fewer bits per
@@ -295,10 +269,6 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
outputInstructionFormat1(&I, Opcode, Table, Slots, Type, Out);
return;
}
- if (Type >= (1 << 12)-1)
- NumOversidedBecauseOfTypes++;
-
- NumOversized1OpInstrs++;
break;
case 2:
@@ -306,9 +276,6 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
outputInstructionFormat2(&I, Opcode, Table, Slots, Type, Out);
return;
}
- if (Type >= (1 << 8))
- NumOversidedBecauseOfTypes++;
- NumOversized2OpInstrs++;
break;
case 3:
@@ -316,12 +283,8 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
outputInstructionFormat3(&I, Opcode, Table, Slots, Type, Out);
return;
}
- if (Type >= (1 << 6))
- NumOversidedBecauseOfTypes++;
- NumOversized3OpInstrs++;
break;
default:
- ++NumHugeOperandInstrs;
break;
}