diff options
Diffstat (limited to 'lib/Bytecode/Writer/InstructionWriter.cpp')
-rw-r--r-- | lib/Bytecode/Writer/InstructionWriter.cpp | 37 |
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; } |