Skip to content

ZJIT: Fix a couple of small bugs #13204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged

Conversation

tekknolagi
Copy link
Contributor

  • Default instruction output type to Any
  • Make sure to call find() on basic block arguments

@matzbot matzbot requested a review from a team April 29, 2025 16:29
@tekknolagi tekknolagi force-pushed the mb-small-zjit-fixes branch 2 times, most recently from 203db0a to ff77bba Compare April 29, 2025 16:52
If we're adding a bunch of instructions in the middle of an optimization
pass, we don't want to use their (currently uninitialized) types because
they start as Empty, and Empty is a subtype of everything. This breaks
some optimizations.

This Any will get refined the next time we call infer_types.
This ensures basic block arguments keep instructions alive, etc.
@tekknolagi tekknolagi force-pushed the mb-small-zjit-fixes branch from ff77bba to 6d9ccee Compare April 29, 2025 17:41
@k0kubun k0kubun enabled auto-merge (rebase) April 29, 2025 17:42
Copy link

launchable-app bot commented Apr 29, 2025

All Tests passed!

✖️no tests failed ✔️61788 tests passed(3 flakes)

@k0kubun k0kubun disabled auto-merge April 29, 2025 18:01
@k0kubun k0kubun merged commit 0c44e5a into ruby:master Apr 29, 2025
76 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants