-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Distributions often won't PGO their packages as it can hurt reproducibility, this is mainly due the compiler potentially producing different run to run profiling results for the given workload affecting the optimized build. This is less of an issue with FDO as the profile provided is static.
For distributions like Arch Linux this is especially problematic as the binary packages are currently compiled the maintainer's personal machines then uploaded to the repository server AFAIU. Therefore the reproducibility requirements are high.
GCC has a flag to mitigate this https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fprofile-reproducible. E.g. the GCC auto PGO build will enable fprofile-reproducible=parallel-runs
by default.
I currently don't know if clang provides any flags that affect profile reproducibility
Any toolchain resources compiled here mentioning reproducible profiles would be handy.