Profile-Guided Optimization (PGO) support in D ecosystem
Iain Buclaw
ibuclaw at gdcproject.org
Sun Nov 12 10:08:21 UTC 2023
On Friday, 10 November 2023 at 12:47:56 UTC, Alexander Zaitsev
wrote:
> Hi!
>
IIRC, Jon wrote a bit about LTO and PGO (with benchmarks
somewhere) for tsv-utils.
https://github.com/eBay/tsv-utils/
> 1. What is the most up-to-date place for PGO documentation?
> Right now I found only
> [this](https://wiki.dlang.org/LDC_LLVM_profiling_instrumentation) for LDC. What about DMD and GDC?
Look up any GCC documentation/how-tos on using
`-fprofile-generate=` and `-fprofile-use=`.
> 5. Is there any documentation on how to build DMD and GDC with
> LTO+PGO? I am looking for smth like it's
> [done](https://clickhouse.com/docs/en/operations/optimizing-performance/profile-guided-optimization) in the ClickHouse documentation (or like it's done for Clang or Rustc).
LTO and PGO aren't a feature of the language, rather the
compiler infrastructure.
More information about the Digitalmars-d
mailing list