[PATCH] D132975: [clang][BOLT] Add clang-bolt target

Amir Ayupov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 3 23:03:12 PDT 2022


Amir added a comment.

In D132975#3768391 <https://reviews.llvm.org/D132975#3768391>, @tschuett wrote:

> Will there be eventually a way to build a fully optimised clang/lld with ThinLTO, PGO, and Bolt?

Short answer is likely yes.
For clang, I think this diff should be compatible with PGO, with a caveat that BOLT should be applied to stage-2 clang built with PGO, which means that `BOOTSTRAP_` options should be set carefully. And for sure it's compatible with ThinLTO - this one is completely orthogonal. 
For lld, I can envision a similar fully automated optimized build, but likely in a future separate diff.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132975/new/

https://reviews.llvm.org/D132975



More information about the cfe-commits mailing list