On Wednesday, 20 April 2016 at 22:10:53 UTC, Marco Leise wrote:
7% is quite a bit more than any other option like -cpu=native
could achieve. If feasible I'd enjoy if ldc2 shipped with a pgo
configuration option. If you use the compiler in a lot of
edit/compile cycles it will pay off.
This was the use-case I was optimizing for, and so I will add an
option to pass a PGO profile to the CMake script :-)
Note that it is a 7% improvement in the D part of LDC. The
optimizer (LLVM, C++) takes most of the time during compilation
and so the overall performance increase is smaller.