PGO builds of GCC are known to lower compilation times of packages.
Gentoo currently supports it via `USE=pgo` on sys-devel/gcc. Setting it requires setting both GCC_MAKE_TARGET=profiledbootstrap and BOOT_CFLAGS to the system CFLAGS. This has been done in Gentoo's toolchain.eclass since 2017: