Skip to content

Commit

Permalink
log reason when not inlining into inlined bb
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed May 27, 2023
1 parent 8055973 commit ab61b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spesh/optimize.c
Expand Up @@ -1550,6 +1550,8 @@ static void optimize_runbytecode(MVMThreadContext *tc, MVMSpeshGraph *g, MVMSpes
MVMSpeshGraph *inline_graph = bb->inlined ? NULL : MVM_spesh_inline_try_get_graph(tc, g,
target_sf, target_sf->body.spesh->body.spesh_candidates[spesh_cand],
ins, &no_inline_reason, &effective_size, &no_inline_info);
if (tc->instance->spesh_inline_log && bb->inlined)
no_inline_reason = "refused to inline into an already inlined bb";
log_inline(tc, g, target_sf, inline_graph, effective_size, no_inline_reason,
0, no_inline_info);
if (inline_graph) {
Expand Down

0 comments on commit ab61b04

Please sign in to comment.