dmd optimizer now converted to D!

Walter Bright newshound2 at digitalmars.com
Wed Jul 4 21:06:13 UTC 2018


On 7/4/2018 10:22 AM, H. S. Teoh wrote:
> Actually, what will make dmd produce better code IMO is: (1) a more
> aggressive metric for the inliner (currently it gives up too easily, at
> the slightest increase in code complexity), and (2) implement loop
> unrolling.

It's already doing some loop unrolling (added recently):

https://github.com/dlang/dmd/blob/master/src/dmd/backend/gloop.d#L3763

There's still room for improvement there, this is a first stab at it.


More information about the Digitalmars-d mailing list