mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
ipa-reorder-for-locality - Adjust bootstrap-lto-locality and param to reduce compile time
This patch turns off -fipa-reorder-for-locality for -fprofile-generate because it's not required and contributes to the bloated time taken by bootstrap. It also reduces the default partition size by half; the increased number of partitions speeds up LTRANS phase. Bootstrapped and tested on aarch64-none-linux-gnu. OK for mainline? Signed-off-by: Prachi Godbole <pgodbole@nvidia.com> config/ChangeLog: * bootstrap-lto-locality.mk (STAGEprofile_CFLAGS): Remove -fipa-reorder-for-locality. (STAGEtrain_CFLAGS): Ditto. gcc/ChangeLog: * params.opt: Change default param value.
This commit is contained in:
committed by
Kyrylo Tkachov
parent
d77d64766a
commit
9c24b4d7df
@@ -2,8 +2,8 @@
|
||||
|
||||
STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -fipa-reorder-for-locality
|
||||
STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -fipa-reorder-for-locality
|
||||
STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1 -fipa-reorder-for-locality
|
||||
STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1 -fipa-reorder-for-locality
|
||||
STAGEprofile_CFLAGS += -flto=jobserver -frandom-seed=1
|
||||
STAGEtrain_CFLAGS += -flto=jobserver -frandom-seed=1
|
||||
STAGEfeedback_CFLAGS += -flto=jobserver -frandom-seed=1 -fipa-reorder-for-locality
|
||||
|
||||
# assumes the host supports the linker plugin
|
||||
|
||||
@@ -517,7 +517,7 @@ Common Joined UInteger Var(param_lto_locality_size) Init(1000) IntegerRange(1, 6
|
||||
Size cut-off for callee including inlined calls to be cloned for a particular caller.
|
||||
|
||||
-param=lto-max-locality-partition=
|
||||
Common Joined UInteger Var(param_max_locality_partition_size) Init(1000000) Param
|
||||
Common Joined UInteger Var(param_max_locality_partition_size) Init(500000) Param
|
||||
Maximal size of a locality partition for LTO (in estimated instructions). Value of 0 results in default value being used.
|
||||
|
||||
Enum
|
||||
|
||||
Reference in New Issue
Block a user