Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907923 - sys-devel/clang: add pgo use flag
Summary: sys-devel/clang: add pgo use flag
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
Depends on:
Reported: 2023-06-06 03:41 UTC by Amir Aupov
Modified: 2023-11-01 12:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Amir Aupov 2023-06-06 03:41:50 UTC
Clang makes it easy to enable Instrumentation PGO using bundled CMake cache files:

Enabling is as simple as appending `-C llvm-project/clang/cmake/caches/PGO.cmake`.

The benefits of enabling PGO this way are shown on slide 4 in this presentation:

with speedups ranging from 10 to 20 percent on a workload of compiling clang itself, which is representative of a modern C++ codebase, which in turn is a representative workload of a gentoo system (compiling c++ packages).

Reproducible: Always