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

precompile: do better union split and concrete compilation search #56496

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Nov 7, 2024

This fixes some bugs that prevent compile-all from working correctly at all, and uses more of it for normal compile. Increases sysimg size from about 140 to 170 MB of data and 11 to 15 MB of code

@vtjnash vtjnash added the compiler:precompilation Precompilation of modules label Nov 7, 2024
@vtjnash vtjnash requested a review from JeffBezanson November 7, 2024 23:43
@vtjnash vtjnash force-pushed the jn/more-precompile+all branch from 79bea13 to 7ed179b Compare November 12, 2024 17:10
@KristofferC
Copy link
Member

The sysimage size is quite significant... There are no benchmarks and no tests that justify this yet, so adding those might make it more palatable.

@vtjnash vtjnash force-pushed the jn/more-precompile+all branch from 7ed179b to b026ab6 Compare November 12, 2024 19:45
This could previously cause any use of llvmcall to crash during ji
generate or generate bad code. Now it uses the llvm attribute to specify
this correctly.
@vtjnash vtjnash force-pushed the jn/more-precompile+all branch from b026ab6 to 882f940 Compare November 12, 2024 22:57
@vtjnash vtjnash added the don't squash Don't squash merge label Nov 12, 2024
@vtjnash
Copy link
Member Author

vtjnash commented Nov 12, 2024

I have some thoughts about improving system image size, but they don't involve being worse at choosing what code to compile as we are without this PR

@topolarity
Copy link
Member

I'm inclined to agree with @vtjnash - this isn't really a policy change on what code to keep as much as it's a bugfix for all the code we weren't intending to delete / not compile

I think it's probably worth taking the hit to have a coherent caching policy

@vtjnash vtjnash merged commit aa05c98 into master Nov 13, 2024
6 of 8 checks passed
@vtjnash vtjnash deleted the jn/more-precompile+all branch November 13, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:precompilation Precompilation of modules don't squash Don't squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants