Skip to content
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

Miscellaneous Meta.partially_inline! fixes #56813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

topolarity
Copy link
Member

This fixes up a couple of conspicuous problems I noticed when reviewing #56787

I'm unsure we should have accepted this pass in Base to begin with... It should at least be re-written to error on unexpected IR elements (instead of performing an invalid transform silently), but the real problem is that this pass is out-of-pipeline and so it doesn't run on most user code and we have much worse coverage compared to passes in the main Compiler.

Tests to be added soon.

@topolarity topolarity marked this pull request as ready for review December 12, 2024 13:43
@topolarity topolarity force-pushed the ct/fix-partially-inline branch from c0c7415 to a4cd62b Compare December 12, 2024 13:43
I'm not a big fan of this pass, or the way it's written. At a minimum, I'd expect
both better test coverage (when we write similar passes for the core Compiler, we
get away with weak test coverage by relying on user code) and a re-factor to make
this switch exhaustive (it should error if unexpected IR elements are encountered,
instead of just performing an incorrect transformation)

This doesn't make progress on those issues for now, but it at least fixes up a
couple of conspicuous problems I noticed when reviewing JuliaLang#56787
@topolarity topolarity force-pushed the ct/fix-partially-inline branch from a4cd62b to 7303337 Compare December 12, 2024 13:46
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.

1 participant