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

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

topolarity
Copy link
Member

@topolarity topolarity commented Dec 12, 2024

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.

@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
@topolarity topolarity added backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 labels Dec 17, 2024
@oscardssmith oscardssmith added the bugfix This change fixes an existing bug label Jan 10, 2025
@topolarity topolarity merged commit c1db3a4 into JuliaLang:master Jan 10, 2025
11 checks passed
@topolarity topolarity deleted the ct/fix-partially-inline branch January 10, 2025 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants