Skip to content

ZJIT: Preserve spilled values in parallel-copy cycles - #1098

Closed
efegokdemir wants to merge 2 commits into
Shopify:masterfrom
efegokdemir:efe/zjit-spilled-parcopy-cycle
Closed

efegokdemir wants to merge 2 commits into
Shopify:masterfrom
efegokdemir:efe/zjit-spilled-parcopy-cycle

Conversation

@efegokdemir

Copy link
Copy Markdown

On x86_64, SSA copy resolution and stack-to-stack move lowering share R11. When a parallel-copy cycle contains spilled values, move lowering can overwrite the value parked there. Use a separate scratch register for parallel-copy cycles and add a regression test for the reported case.

Tests: Not run locally; this host is arm64 and the regression is x86_64-specific.

@github-actions github-actions Bot added the jit label Nov 3, 2026
@tekknolagi

Copy link
Copy Markdown

Please file PRs to ruby/ruby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants