Skip to content

Commit

Permalink
don't ignore extops for size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Nov 11, 2017
1 parent 8973149 commit c18017d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spesh/codegen.c
Expand Up @@ -227,7 +227,9 @@ static void write_instructions(MVMThreadContext *tc, MVMSpeshGraph *g, SpeshWrit
/* If this op belongs to one of the instrumentations, remember its
* size so we can get a normalized bytecode size later on. */

if (ins->info->opcode >= MVM_OP_prof_enter && ins->info->opcode != MVM_SSA_PHI) {
if (ins->info->opcode >= MVM_OP_prof_enter
&& ins->info->opcode != MVM_SSA_PHI
&& ins->info->opcode < MVM_OP_EXT_BASE) {
ws->ignored_bytes += ws->bytecode_pos - pos_at_beginning;
}

Expand Down

0 comments on commit c18017d

Please sign in to comment.