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

Reply via email to