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

fix world_age_at_entry in codegen #56700

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Nov 27, 2024

The world is set (and reset) by the caller in toplevel code, so it should not be changed here as that makes the inference beforehand invalid (undermining the point of doing #56509 without any benefit). Also avoid allocating world_age_at_entry for every function, when it is almost never needed.

@vtjnash vtjnash added the compiler:codegen Generation of LLVM IR and native code label Nov 27, 2024
The world is set (and reset) by the caller in toplevel code, so it
should not be changed here as that makes the inference beforehand
invalid. Also avoid allocating world_age_at_entry for every function,
when it is almost never needed.
@vtjnash vtjnash force-pushed the jn/codegen-world_age_at_entry branch from 7e0e8d7 to 7dcca44 Compare November 27, 2024 22:56
@vtjnash vtjnash requested a review from Keno November 27, 2024 22:56
@vtjnash vtjnash merged commit 447dc2d into master Nov 28, 2024
6 of 7 checks passed
@vtjnash vtjnash deleted the jn/codegen-world_age_at_entry branch November 28, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants