Loop optimization

Walter Bright newshound1 at digitalmars.com
Sun May 16 16:15:34 PDT 2010


bearophile wrote:
> DMD compiler doesn't perform many optimizations,

This is simply false. DMD does an excellent job with integer and pointer 
operations. It does a so-so job with floating point.

There are probably over a thousand optimizations at all levels that dmd does 
with integer and pointer code.

Compare the generated code with and without -O. Even without -O, dmd does a long 
list of optimizations (such as common subexpression elimination).


More information about the Digitalmars-d-learn mailing list