-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Calling jl_value_ptr
has inlining cost of 20 even when its optimized out
#51912
Comments
jl_value_ptr
has inlining cost of 20 even when its compiled outjl_value_ptr
has inlining cost of 20 even when its optimized out
Should julia/base/compiler/optimize.jl Lines 1105 to 1110 in 98542d7
|
Probably not. jl_value_ptr is harmful to the compiler for optimizations and correctness. The jl_string_ptr function should be removed eventually, but doesn't change compilation much since it only references constant memory. |
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Oct 29, 2023
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Oct 29, 2023
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Oct 31, 2023
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Nov 14, 2023
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Feb 2, 2024
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Zentrik
added a commit
to Zentrik/julia
that referenced
this issue
Jul 14, 2024
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
giordano
pushed a commit
to Zentrik/julia
that referenced
this issue
Aug 5, 2024
Unfortunately, cost is ~106 now so still too high, JuliaLang#51912 is tracking issue about high cost. Lowers inlining cost of setproperty as we know rhs isa Memory{Any}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm on master (#51892), but I see same results on 1.9.3 and 1.10.0-beta3.
Even though the call is optimized out there is still an inlining cost, I thought this comment said it was fixed, #41461 (comment) but I can reproduce that issue.
The text was updated successfully, but these errors were encountered: