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

AbstractInterpreter: account for overlay possibility in skipped call #49518

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

aviatesk
Copy link
Member

When we skip inference of a call on throw block, previously we only checked if the call is overlayed or not. But the call may call an overlayed method internally, thus we need to conservatively taint the :nonoverlayed bit when interp uses overlay method table.

Nevertheless this will not introduce any regressions on GPUCompiler stack (like #48097), since it defines InferenceParams(::GPUInterpreter) overload to turn off unoptimize_throw_blocks
https://github.com/JuliaGPU/GPUCompiler.jl/blob/d5086fb3d93bbc4795a96f6f1457898af46a24cb/src/interface.jl#L272

/cc @maleadt

When we skip inference of a call on `throw` block, previously we only
checked if the call is overlayed or not. But the call may call an
overlayed method internally, thus we need to conservatively taint the
`:nonoverlayed` bit when `interp` uses overlay method table.

Nevertheless this will not introduce any regressions on GPUCompiler
stack (like #48097), since it defines `InferenceParams(::GPUInterpreter)`
overload to turn off `unoptimize_throw_blocks`
<https://github.com/JuliaGPU/GPUCompiler.jl/blob/d5086fb3d93bbc4795a96f6f1457898af46a24cb/src/interface.jl#L272>
@aviatesk aviatesk changed the title AbstractInterpreter: account for overlay possibility in unanalyzed call AbstractInterpreter: account for overlay possibility in skipped call Apr 26, 2023
@aviatesk aviatesk merged commit 3b993a9 into master Apr 27, 2023
@aviatesk aviatesk deleted the avi/unknonw-overlay branch April 27, 2023 00:00
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