aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2025-09-03 17:45:02 +0200
committerJan Hubicka <hubicka@ucw.cz>2025-09-03 17:45:32 +0200
commit7e2fdee3e29019b10251d85880053170154776de (patch)
tree5fdd329c6c1a022d7498d37e79dc62b60fd92c74
parentcb508e54140687a50790059fac548d87515df6be (diff)
downloadgcc-7e2fdee3e29019b10251d85880053170154776de.zip
gcc-7e2fdee3e29019b10251d85880053170154776de.tar.gz
gcc-7e2fdee3e29019b10251d85880053170154776de.tar.bz2
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.
-rw-r--r--gcc/params.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/params.opt b/gcc/params.opt
index ac1b2c7..dd53d83 100644
--- a/gcc/params.opt
+++ b/gcc/params.opt
@@ -462,7 +462,7 @@ Common Joined UInteger Var(param_min_partition_size) Init(10000) Param
Minimal size of a partition for LTO (in estimated instructions).
-param=lto-partitions=
-Common Joined UInteger Var(param_lto_partitions) Init(128) IntegerRange(1, 65536) Param
+Common Joined UInteger Var(param_lto_partitions) Init(512) IntegerRange(1, 65536) Param
Number of partitions the program should be split to.
Enum