release mode optimization
David Nadlinger
see at klickverbot.at
Wed Jan 9 17:03:47 PST 2013
On Thursday, 10 January 2013 at 00:40:21 UTC, Jonathan M Davis
wrote:
> So clearly, dmd does _not_ optimize out the loop. I have no
> idea what
> gdc and ldc do though.
Wow, DMD doesn't optimize it away indeed, just confirmed that by
a look at the assembly.
LDC does delete the loop though, starting at -O1, and I can't
imagine that GDC wouldn't as well.
David
More information about the Digitalmars-d-learn
mailing list