What should happen here?
Steven Schveighoffer
schveiguy at gmail.com
Sun Sep 26 15:00:31 UTC 2021
On 9/25/21 10:13 PM, Walter Bright wrote:
> On 9/25/2021 6:02 PM, Steven Schveighoffer wrote:
>> As I said, the optimizer is fighting you the entire way.
>
> I'd reframe it as the user is trying to impose his own semantics on the
> optimizer :-)
>
> Selecting semantics that enable aggressive optimizations is always a
> dance between user predictability and high performance. High performance
> usually wins.
>
> Disabling dead assignment elimination would have a catastrophic
> deleterious effect on optimizations. A lot of template bloat would remain.
>
>
>> But I still am wishing for a simple "keep this alive" mechanism that
>> doesn't add too much cruft, and is guaranteed to keep it alive.
>
> That's exactly what addRoot() is for.
OK.
https://github.com/dlang/dlang.org/pull/3102
-Steve
More information about the Digitalmars-d
mailing list