-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[Inference] Not all problems [...] can be solved by another level of indirection #31485
Comments
Looking into this a bit more:
Looking at julia/base/compiler/abstractinterpretation.jl Line 323 in 91151ab
limit_type_size shows that we recurse twice and end up in a situation where:
which due to the julia/base/compiler/typelimits.jl Line 185 in a399780
Meh. Unsure how to proceed here so ideas would be welcomed. |
It seems like we might be able to fix this by making |
@peterahrens encountered an interesting type-inference corner case, where adding a level of indirection would trigger type-inferences recursion heuristic and in his case prevent inlining to happen. The code Peter was written looked a lot like this:
Inspecting this code with
@code_typed f(zeros(3,3,3,3,3))
yields:whereas removing that level of indirection
yields:
The issue reminds me of #24852 and #26822
The text was updated successfully, but these errors were encountered: