lto fixes
This commit is contained in:
parent
a02fc9fd60
commit
c9bb42d989
7 changed files with 13 additions and 12 deletions
|
@ -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", ]
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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", ]
|
||||
|
|
|
@ -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",
|
||||
]
|
||||
|
||||
|
|
|
@ -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", ]
|
||||
|
|
|
@ -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", ]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue