Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -8878,10 +8878,10 @@ generate_code (TransformData *td, MonoMethod *method, MonoMethodHeader *header,
memcpy (td->stack, exit_bb->stack_state, exit_bb->stack_height * sizeof(td->stack [0]));
td->sp = td->stack + exit_bb->stack_height;
}
// If exit_bb is not reached by any other bb in this method, just mark it as dead so the
// method that does the inlining no longer generates code for the following IL opcodes.
// If exit_bb is not reached by any other bb in this method, it means the method always
// throws an exception. Inlining it isn't beneficial since this shouldn't be perf sensitive code.
if (exit_bb->in_count == 0)
exit_bb->dead = TRUE;
INLINE_FAILURE;
else
exit_bb->emit_state = BB_STATE_EMITTING;
}
Expand Down
Loading