From fff663b47a5da518bf1dc56f8f8748e19b9cb1f7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 1 Feb 2004 01:50:31 +0000 Subject: 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 --- lib/Bytecode/Writer/InstructionWriter.cpp | 37 ------------------------------- 1 file changed, 37 deletions(-) (limited to 'lib/Bytecode/Writer/InstructionWriter.cpp') 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 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 &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; } -- cgit v1.2.3-18-g5258