Skip to content

Conversation

@k0kubun
Copy link
Member

@k0kubun k0kubun commented May 2, 2025

This PR lets OPTIMIZE_METHOD_TYPE_CALL end the block at the instruction, which currently keeps compiling.

If we don't end the block and it's followed by a setlocal in the same block, we can't invalidate the setlocal instruction properly when OPTIMIZE_METHOD_TYPE_CALL escapes the EP.

See also: #10487, which relies on #10539

@k0kubun k0kubun merged commit cbf9c08 into ruby:master May 5, 2025
84 checks passed
@k0kubun k0kubun deleted the yjit-end-block branch May 5, 2025 20:35
matzbot pushed a commit that referenced this pull request May 24, 2025
	YJIT: End the block after OPTIMIZE_METHOD_TYPE_CALL (#13245)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants