]> git.ipfire.org Git - thirdparty/gcc.git/commit
Increase default number of LTO partitions
authorJan Hubicka <hubicka@ucw.cz>
Wed, 3 Sep 2025 15:45:02 +0000 (17:45 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Wed, 3 Sep 2025 15:45:32 +0000 (17:45 +0200)
commit7e2fdee3e29019b10251d85880053170154776de
tree5fdd329c6c1a022d7498d37e79dc62b60fd92c74
parentcb508e54140687a50790059fac548d87515df6be
Increase default number of LTO partitions

The number of LTO partitions should exceed number of CPUs (or hyper-threads) of
commonly used CPUs.  I think it is time to increase it again and as discussed
in the LTO and toplevel asm thread, doing so scales quite well. Tmp file usage
grows from 2.7 to 2.9MB which seems acceptable.  Overall build time on machine
with 256 hyperthreads is comparable.

Bootstrapped/regtested x86_64-linux, comitted.

gcc/ChangeLog:

* params.opt (-param=lto-partitions=): INcrease default value from 128 to 512.
gcc/params.opt