Skip to content

Commit

Permalink
Extra DU chain check after PEA phase
Browse files Browse the repository at this point in the history
To help understand if that's where the problems came from.
  • Loading branch information
jnthn committed May 15, 2019
1 parent ebb455d commit eaa7f15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/spesh/optimize.c
Expand Up @@ -3339,8 +3339,12 @@ void MVM_spesh_optimize(MVMThreadContext *tc, MVMSpeshGraph *g, MVMSpeshPlanned
/* Perform partial escape analysis at this point, which may make more
* information available, or give more `set` instructions for the `set`
* elimination in the post-inline pass to get rid of. */
if (tc->instance->spesh_pea_enabled)
if (tc->instance->spesh_pea_enabled) {
MVM_spesh_pea(tc, g);
#if MVM_SPESH_CHECK_DU
MVM_spesh_usages_check(tc, g);
#endif
}

/* Make a post-inline pass through the graph doing things that are better
* done after inlinings have taken place. Note that these things must not
Expand Down

0 comments on commit eaa7f15

Please sign in to comment.