-
-
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
Running code_typed
changes result of code_llvm
#53718
Comments
I think this is the same inference bug as I ran into here: #52069 |
I believe @gbaraldi pointed out another unresolved mystery here, which is why we end up with this "constant invoke" in the first place |
This is mostly an artifact of the fact that the first time we compile that code the global doesn't exist, but if we recompile it we know it exists and assume it to always exist (potentially incorrectly) |
Looking closer, this is not a bug at all, just a suboptimal inference result (which is never a bug) |
versus if you call
code_typed
first:Notice the
jl_invoke
that became a proper static call.The text was updated successfully, but these errors were encountered: