Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Mar 12, 2024
1 parent 9ace184 commit 65dda86
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/benchmark/benchmarks/benchmark.instructioninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace zasm::benchmarks

Program program(MachineMode::AMD64);
Assembler assembler(program);
Serializer serializer;

for (auto s : state)
{
Expand All @@ -23,17 +22,17 @@ namespace zasm::benchmarks

program.clear();
assembler.setCursor(nullptr);

const auto& instrData = tests::data::Instructions[i];
instrData.emitter(assembler);

const auto& instr = assembler.getCursor()->get<Instruction>();
state.ResumeTiming();

const auto instrInfo = instr.getDetail(program.getMode());
benchmark::DoNotOptimize(instrInfo);

}

state.counters["InstructionInfos"] = benchmark::Counter(
static_cast<double>(count), benchmark::Counter::kIsIterationInvariantRate, benchmark::Counter::OneK::kIs1000);
}
Expand Down

0 comments on commit 65dda86

Please sign in to comment.