Skip to content

Conversation

@aviatesk
Copy link
Member

@aviatesk aviatesk commented Apr 7, 2025

After #55575, inference for basic statements got inlined into typeinf_local. But external abstract interpreters like JET.jl need to overload this inference to customize this behavior. So this commit extracts the inlined inference logic back out into a separate abstract_eval_basic_statement method.

After #55575, inference for basic statements got inlined
into `typeinf_local`. But external abstract interpreters like JET.jl
need to overload this inference to customize this behavior.
So this commit extracts the inlined inference logic back out into
a separate `abstract_eval_basic_statement` method.
@aviatesk aviatesk added the backport 1.12 Change should be backported to release-1.12 label Apr 7, 2025
@aviatesk aviatesk requested a review from vtjnash April 7, 2025 00:11
@aviatesk aviatesk merged commit edbad8b into master Apr 8, 2025
8 checks passed
@aviatesk aviatesk deleted the avi/overload-basic-statement branch April 8, 2025 18:17
aviatesk added a commit that referenced this pull request Apr 8, 2025
After #55575, inference for basic statements got inlined
into `typeinf_local`. But external abstract interpreters like JET.jl
need to overload this inference to customize this behavior. So this
commit extracts the inlined inference logic back out into a separate
`abstract_eval_basic_statement` method.
@aviatesk aviatesk mentioned this pull request Apr 8, 2025
51 tasks
aviatesk added a commit that referenced this pull request Apr 21, 2025
#58027 introduced 5~10% performance regression in the
`"inference"` benchmark. This commit fixes the regression by inlining
`abstract_eval_basic_statement` that was outlined in the PR.
KristofferC pushed a commit that referenced this pull request Apr 22, 2025
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Apr 25, 2025
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
…ng#58027)

After JuliaLang#55575, inference for basic statements got inlined
into `typeinf_local`. But external abstract interpreters like JET.jl
need to overload this inference to customize this behavior. So this
commit extracts the inlined inference logic back out into a separate
`abstract_eval_basic_statement` method.
serenity4 pushed a commit to serenity4/julia that referenced this pull request May 1, 2025
LebedevRI pushed a commit to LebedevRI/julia that referenced this pull request May 2, 2025
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