-
Notifications
You must be signed in to change notification settings - Fork 9
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
Code is eliminated in @pstats
#47
Comments
Looks like llvm is able to figure out that |
I think the |
I would guess LLVM can just see this gives non-negative results https://github.com/JuliaLang/julia/blob/8f5b7ca12ad48c6d740e058312fc8cf2bbe67848/stdlib/Random/src/Xoshiro.jl#L305-L306. Looks like the early CSE pass figured it out https://godbolt.org/z/qnqxrqM9a. |
picalc(10000000000000)
should take 1.4 hours, but it takes ~300 μs inside@pstats
, which is about the same time reported fornothing
. I see there's some effort to try and avoid the code being eliminatedLinuxPerf.jl/src/LinuxPerf.jl
Lines 1144 to 1145 in eae2705
but it doesn't seem to be very effective anymore.
The text was updated successfully, but these errors were encountered: