Skip to content

Commit

Permalink
Don't do the usage validation so often
Browse files Browse the repository at this point in the history
It's rather costly, and slows things down a good bit too much to do it
after each processed instruction.
  • Loading branch information
jnthn committed Jul 9, 2018
1 parent 0ef24ff commit 673a8a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/spesh/optimize.c
Expand Up @@ -2377,12 +2377,11 @@ static void optimize_bb_switch(MVMThreadContext *tc, MVMSpeshGraph *g, MVMSpeshB
if (ins->info->opcode == (MVMuint16)-1)
optimize_extop(tc, g, bb, ins);
}

#if MVM_SPESH_CHECK_DU
MVM_spesh_usages_check(tc, g);
#endif
ins = ins->next;
}
#if MVM_SPESH_CHECK_DU
MVM_spesh_usages_check(tc, g);
#endif
}
/* Visits the blocks in dominator tree order, recursively. */
static void optimize_bb(MVMThreadContext *tc, MVMSpeshGraph *g, MVMSpeshBB *bb,
Expand Down

0 comments on commit 673a8a2

Please sign in to comment.