mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 03:26:05 +00:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user