[Issue 22861] Build the compiler with PGO

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 9 21:48:24 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22861

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@maxhaton created dlang/dmd pull request #13791 "Fix Issue 22861 - build the
compiler with PGO" fixing this issue:

- Fix Issue 22861 - build the compiler with PGO

  This introduces a new target to build.d, dmd-pgo, which will build a dmd with
PGO
  instrumentation, then run either the phobos or dmd testsuite (both are
present in the
  source code, only the dmd one is set to run at the moment). This data is then
merged,
  at which point the data is used to build a release + LTO build of dmd.

  This resulting build is significantly faster - on the order of 45% on some
programs.

  ENABLE_PGO=1 can be used to make the build script use the dmd-pgo by default,
however
  something more subtle may be required to make all dmd builds (i.e. releases)
  fully pgo-ified

https://github.com/dlang/dmd/pull/13791

--


More information about the Digitalmars-d-bugs mailing list