Description
Hi! Thanks a lot for the scripts.
Can I suggest enabling (probably optionally via opt-in/opt-out flags) building LLVM with Profile-Guided Optimization? According to the tests, PGO helps a lot with improving performance for LLVM-based projects: Clang (up to +20% compilation speed), LLD, clang-tidy, and others. E.g. for LLVM-based projects, you can check the benchmarks here. Probably for CPython PGO build can be enabled as well - CPython supports PGO in the upstream. If you want to check more PGO benchmarks, you can find them here.
Regarding opt-in or opt-out - this decision is up to you. Since enabling PGO automatically enables a double compilation process, and it can be a significant issue for someone.
For Clang PGO build is even supported in the upstream CMake scripts: https://github.com/llvm/llvm-project/blob/main/clang/cmake/caches/PGO.cmake