Building with `USE=pgo` and Clang fails:
```
clang++: error: Error in reading profile default.profdata: No such file or directory
```
Clang writes raw profile files that have to be merged with llvm-profdata
first. GCC handles this on its own.
This changeset adds this merge step when using Clang, and has both the
generate and use passes keep profile data in `${T}` instead of the
source tree.
PGO was also made opt-in instead of the default. Even though it's
enabled by upstream, it's arguably unnecessary for such a small program.
An upstream comment even reports it's only a 2% performance increase for
30x the build time.
Signed-off-by: AeroModes <mail@aeromod.es>
Part-of: https://codeberg.org/gentoo/guru/pulls/66
Merges: https://codeberg.org/gentoo/guru/pulls/66
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
There's a distinct lack of IPS and BPS patching tools in the repository,
this is the only linux-native tool of the sort I've used for years. I
think it's time to add it.
Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>