dmd codegen improvements

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 19 01:07:56 PDT 2015


On 19-Aug-2015 00:43, Walter Bright wrote:
> On 8/18/2015 1:33 PM, Jacob Carlborg wrote:
>> There's profile guided optimization, which LLVM supports.
>
> dmd does have that to some extent. If you run with -profile, the
> profiler will emit a trace.def file. This is a script which can be fed
> to the linker which controls the layout of functions in the executable.
> The layout is organized so that strongly connected functions reside in
> the same page, minimizing swapping and maximizing cache hits.
>
> Unfortunately, nobody makes use of it, which makes me reluctant to
> expend further effort on PGO.
>
>    http://www.digitalmars.com/ctg/trace.html
>
> I wonder how many people actually use the llvm profile guided
> optimizations. I suspect very, very few.

I guess this needs a prominent article to show some bung for the buck.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list