Optimizing out unnecessary allocations

David Nadlinger see at klickverbot.at
Wed Oct 17 14:59:38 PDT 2012


On Wednesday, 17 October 2012 at 18:10:26 UTC, David Nadlinger 
wrote:
> Thus, my question: Is it legal for a D compiler to eliminate 
> dead GC allocations (given that there are no side effects due 
> to constructors, …)?

Walter confirmed that this should be allowed. Pull request fixing 
the test: https://github.com/D-Programming-Language/dmd/pull/1191

David


More information about the Digitalmars-d mailing list