You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code rustc nightly (but not 1.58!) can successfully remove memory allocation and directly inline the answer: https://godbolt.org/z/s8G33jWEv
In the following code rustc nightly (but not 1.58!) can successfully remove memory allocation and directly inline the answer: https://godbolt.org/z/s8G33jWEv
But if I replace
with
it stops applying this optimisation: https://godbolt.org/z/oY8WrvfE7
Both clang and GCC can easily optimise equivalent C code:
https://godbolt.org/z/be9zPvYMj
The text was updated successfully, but these errors were encountered: