Bug 2156679 - Build Clang with PGO
Summary: Build Clang with PGO
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: 38
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2022-12-28 06:22 UTC by Alexander Zaitsev
Modified: 2023-02-07 15:04 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description Alexander Zaitsev 2022-12-28 06:22:01 UTC
Description of problem:

Clang supports (https://llvm.org/docs/HowToBuildWithPGO.html) bootstrapping with PGO. It increases Clang performance. The same thing is already enabled for GCC in Fedora (profiledbootstrap option). I think the same thing could be done for Clang since in the current build script I don't see that Clang is built with PGO.

Expected results:
Provided Clang binaries with Fedora are built with PGO.

Additional option:
Also you could try to build binary with LLVM BOLT (https://github.com/facebookincubator/BOLT/blob/main/bolt/docs/OptimizingClang.md) but I guess it's another question and it's much more complicated topic.

Comment 1 Ben Cotton 2023-02-07 15:04:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Note You need to log in before you can comment on or make changes to this bug.