On Fri, Jul 11, 2025 at 12:14:46PM +0200, Jan Hubicka wrote: > Hello, > currently autoprofiled bootstrap produces auto-profiles for cc1 and > cc1plus binaries. Those are used to build respective frontend files. > For backend cc1plus.fda is used. This does not work well with LTO > bootstrap where cc1plus backend is untrained since it is used only for > parsing and ealry opts. As a result all binaries gets most of the > backend optimized for size rather then speed. > > This patch adds lto1.fda and then combines all of cc1, cc1plus and lto1 into > all.fda that is used compiling common modules. This is more or less > equivalent to what -fprofile-use effectively uses modulo that with > -fprofile-use we know number of runs of evety object file and scale > accordingly at LTO time. > > There is comment disabling lto1 profiling claiming it does not work. Indeed I > get an ICE which I fixed in separate patch. > > autoprofiledbootstrapped x86_64-linux with the extra fix, profiledbootstrap is > running, OK if it passes?
Looks good to me. Also should enable the missing languages, in particular fortran and maybe a few others. -Andi