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
Interestingly enough making the struct mutable also eliminates the intermediate allocation. D also produces nice and clean @code_llvm output while the @code_llvm for A is overly complex
I was surprised to see that the ternary operation creates an allocation in this example. Should this be considered a bug?
The behaviour has at least these three requirements:
A
contains a non-isbitstype member typef
has unstable output typef
has one branch returning anA
instanceIf any of them is not satisfied, no allocation happens.
The text was updated successfully, but these errors were encountered: