Skip to content

Profile-Guided Optimization (PGO) questions #4524

Answered by JohanEngelen
zamazan4ik asked this question in Q&A
Discussion options

You must be logged in to vote
  1. We don't really have good documentation here. The wiki page you refer to does not contain all info. Best to look at clang documentation, and check if LDC has the commandline option needed (--help).
  2. Sampling PGO not yet. It will be probably be very easy to add though. Maybe I'll get around to implementing it this year, or someone else ;)
  3. We support front-end PGO, and IR PGO. But not CSIR PGO (probably will also be easy to implement, because LLVM provides the functionality). Please file an issue so we don't forget
  4. When LDC is built with LTO+PGO it gives 10-15% faster compilation time on complex codebase at Weka.io (the PGO profile is made by compiling Phobos/druntime, not by compiling the …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zamazan4ik
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants