public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Document how to build PGO-optimized GCC version
@ 2022-12-28  5:36 Alexander Zaitsev
  2022-12-28  5:48 ` Andrew Pinski
  2022-12-28  7:22 ` NightStrike
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Zaitsev @ 2022-12-28  5:36 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

Hello.

We are using GCC for our C++ projects. Our projects are huge, commit 
rate is quite huge, so our CI workers are always busy (so as any other 
CI workers, honestly). Since we want to increase build speed, one of the 
option is to optimize the compiler itself. Sounds like a good case for PGO.

Clang has the infrastructure for building the Clang itself with PGO: 
https://llvm.org/docs/HowToBuildWithPGO.html . I have tried to find 
something like that for GCC but with no success.

My proposal is:

  * add support for building PGO-optimized GCC into the GCC build
    infrastructure
  * add documentation to the GCC site, how to build GCC with PGO
    optimizations
  * (if GCC community provides prebuilt gcc binaries) use PGO for the
    prebuilt binaries. E.g. Clang and rustc already uses this approach.

Any feedback is appreciated.

Thanks in advance!

-- 
Best regards,
Alexander Zaitsev

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-28  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28  5:36 Document how to build PGO-optimized GCC version Alexander Zaitsev
2022-12-28  5:48 ` Andrew Pinski
2022-12-28  8:57   ` Martin Liška
2022-12-28  7:22 ` NightStrike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).