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

Move EffectsOverride to expr.jl #56187

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

Move EffectsOverride to expr.jl #56187

wants to merge 1 commit into from

Conversation

Keno
Copy link
Member

@Keno Keno commented Oct 16, 2024

It makes sense that we originally added this to the compiler, but these annotations are really a runtime feature that the compiler simply reads to allow it to make additional assumptions. The runtime should not semantically depend on the compiler for this, so move these definitions to expr.jl. The practical effect of this right now is that Base gains a second copy of this code. Post #56128, the compiler will use the Base copy of this.

Split out from #56128.

base/expr.jl Outdated Show resolved Hide resolved
It makes sense that we originally added this to the compiler, but
these annotations are really a runtime feature that the compiler
simply reads to allow it to make additional assumptions. The runtime
should not semantically depend on the compiler for this, so
move these definitions to expr.jl. The practical effect of this
right now is that Base gains a second copy of this code.
Post #56128, the compiler will use the Base copy of this.

Split out from #56128.
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.

2 participants