Skip to content

Commit

Permalink
Remove redundant check to make it easier to merge with #6509
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Dec 17, 2023
1 parent 4bbde33 commit 569f052
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions clients/drcachesim/tools/basic_counts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,10 @@ basic_counts_t::parallel_shard_memref(void *shard_data, const memref_t &memref)
}
if (type_is_instr(memref.instr.type)) {
++counters->instrs;
if (TESTANY(OFFLINE_FILE_TYPE_KERNEL_SYSCALLS |
OFFLINE_FILE_TYPE_KERNEL_SYSCALL_INSTR_ONLY,
per_shard->filetype_)) {
if (per_shard->is_kernel) {
++counters->kernel_instrs;
} else {
++counters->user_instrs;
}
if (per_shard->is_kernel) {
++counters->kernel_instrs;
} else {
++counters->user_instrs;
}
counters->unique_pc_addrs.insert(memref.instr.addr);
// The encoding entries aren't exposed at the memref_t level, but
Expand Down

0 comments on commit 569f052

Please sign in to comment.