18 Feb
2022
18 Feb
'22
8:36 p.m.
Niall Douglas wrote:
Surely laundering the address each time is rather bad for optimisation and codegen?
I mean, effectively launder invokes "escaped" during escape analysis right?
I honestly have no idea.
However, looking at https://godbolt.org/z/oKj5c5x7v, it doesn't seem so.
And in the case in which the address actually escapes, there doesn't seem to be any difference either: https://godbolt.org/z/j93oe3cr8