diff --git a/arm/build/config/compiler/BUILD.gn b/arm/build/config/compiler/BUILD.gn index bae97411..0ad77e11 100644 --- a/arm/build/config/compiler/BUILD.gn +++ b/arm/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), @@ -1124,7 +1124,7 @@ config("compiler_cpu_abi") { "-maes", "-mpclmul", ] - ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ] + ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ] } else if (current_cpu == "x86") { cflags += [ "-m32" ] ldflags += [ "-m32", "-Wl,-O3", "-msse3", ] diff --git a/arm/raspi/build/config/compiler/BUILD.gn b/arm/raspi/build/config/compiler/BUILD.gn index d292e9fa..326197da 100644 --- a/arm/raspi/build/config/compiler/BUILD.gn +++ b/arm/raspi/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn index 8e5038f7..5808e020 100644 --- a/other/AVX2/build/config/compiler/BUILD.gn +++ b/other/AVX2/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), @@ -1117,10 +1117,9 @@ config("compiler_cpu_abi") { "-m64", "-O3", "-march=x86-64-v3", - "-mtune=x86-64-v3", "-ffp-contract=fast", ] - ldflags += [ "-m64", "-Wl,-O3", "-Wl,-mllvm,-march=x86-64-v3", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ] + ldflags += [ "-m64", "-Wl,-O3", "-Wl,-mllvm,-march=x86-64-v3", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ] } else if (current_cpu == "x86") { cflags += [ "-m32" ] ldflags += [ "-m32", "-Wl,-O3", "-msse3", ] diff --git a/other/CrOS/build/config/compiler/BUILD.gn b/other/CrOS/build/config/compiler/BUILD.gn index 41856a90..1d321d00 100644 --- a/other/CrOS/build/config/compiler/BUILD.gn +++ b/other/CrOS/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), @@ -2285,7 +2285,7 @@ if (is_win) { common_optimize_on_ldflags += [ "-Wl,-mllvm,-enable-gvn-hoist", - "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", + "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", "-Wl,-O3", ] diff --git a/other/SSE3/build/config/compiler/BUILD.gn b/other/SSE3/build/config/compiler/BUILD.gn index b8dd9d6f..d19bb6ae 100644 --- a/other/SSE3/build/config/compiler/BUILD.gn +++ b/other/SSE3/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), @@ -1118,7 +1118,7 @@ config("compiler_cpu_abi") { "-O3", "-msse3", ] - ldflags += [ "-m64", "-Wl,-O3", "-msse3", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ] + ldflags += [ "-m64", "-Wl,-O3", "-msse3", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ] } else if (current_cpu == "x86") { cflags += [ "-m32" ] ldflags += [ "-m32", "-Wl,-O3", "-msse3", ] diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index c62f3dde..f79028a3 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -723,7 +723,7 @@ config("compiler") { "/opt:lldltojobs=all", "-mllvm:-import-instr-limit=$import_instr_limit", "-mllvm:-import-hot-multiplier=15", - "-mllvm:-import-cold-multiplier=4", + "-mllvm:-import-cold-multiplier=2", "-mllvm:-disable-auto-upgrade-debug-info", # "/lldltocache:" + # rebase_path("$root_out_dir/thinlto-cache", root_build_dir), @@ -1120,7 +1120,7 @@ config("compiler_cpu_abi") { "-maes", "-mpclmul", ] - ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ] + ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mpclmul", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ] } else if (current_cpu == "x86") { cflags += [ "-m32" ] ldflags += [ "-m32", "-Wl,-O3", "-msse3", ] diff --git a/version.sh b/version.sh index 8bdc5c25..b4a94736 100755 --- a/version.sh +++ b/version.sh @@ -62,6 +62,8 @@ cd ${CR_SRC_DIR} && gclient sync --with_branch_heads --with_tags -f -R -D && +git clean -ffd && + gclient runhooks && # Install all sysroots (i.e. for ARM64)