Update BUILD.gn

This commit is contained in:
Alexander David Frick 2023-01-27 05:49:35 -06:00 committed by GitHub
parent c78888b889
commit 79585a1d47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -945,6 +945,7 @@ config("compiler_cpu_abi") {
"-mavx",
"-maes",
"-mvaes",
"-mpclmul",
]
ldflags += [ "-m64", "-Wl,-O3", "-mavx", "-maes", "-mvaes", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ]
} else if (current_cpu == "x86") {
@ -2010,10 +2011,23 @@ config("no_incompatible_pointer_warnings") {
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-adce-remove-loops",
"-mllvm", "-enable-cse-in-irtranslator",
"-mllvm", "-enable-cse-in-legalizer",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-gvn-hoist-max-bbs=-1",
"-mllvm", "-gvn-hoist-max-depth=-1",
"-mllvm", "-gvn-hoist-max-chain-length=-1",
"/O3",
"/clang:-O3",
"/clang:-mavx",
"/clang:-maes",
"/clang:-mvaes",
"/clang:-mpclmul",
"-Xclang", "-O3",
]
@ -2028,6 +2042,17 @@ config("no_incompatible_pointer_warnings") {
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-unroll-runtime-multi-exit",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-adce-remove-loops",
"-mllvm:-enable-cse-in-irtranslator",
"-mllvm:-enable-cse-in-legalizer",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-gvn-hoist-max-bbs=-1",
"-mllvm:-gvn-hoist-max-depth=-1",
"-mllvm:-gvn-hoist-max-chain-length=-1",
]
if (is_win) {
@ -2061,10 +2086,23 @@ if (is_win) {
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-adce-remove-loops",
"-mllvm", "-enable-cse-in-irtranslator",
"-mllvm", "-enable-cse-in-legalizer",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-gvn-hoist-max-bbs=-1",
"-mllvm", "-gvn-hoist-max-depth=-1",
"-mllvm", "-gvn-hoist-max-chain-length=-1",
"/O3",
"/clang:-O3",
"/clang:-mavx",
"/clang:-maes",
"/clang:-mvaes",
"/clang:-mpclmul",
"-Xclang", "-O3",
]
@ -2079,6 +2117,17 @@ if (is_win) {
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-unroll-runtime-multi-exit",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-adce-remove-loops",
"-mllvm:-enable-cse-in-irtranslator",
"-mllvm:-enable-cse-in-legalizer",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-gvn-hoist-max-bbs=-1",
"-mllvm:-gvn-hoist-max-depth=-1",
"-mllvm:-gvn-hoist-max-chain-length=-1",
]
# /OPT:ICF is not desirable in Debug builds, since code-folding can result in
@ -2108,6 +2157,17 @@ if (is_win) {
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-adce-remove-loops",
"-mllvm", "-enable-cse-in-irtranslator",
"-mllvm", "-enable-cse-in-legalizer",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-gvn-hoist-max-bbs=-1",
"-mllvm", "-gvn-hoist-max-depth=-1",
"-mllvm", "-gvn-hoist-max-chain-length=-1",
"-O3",
]
@ -2122,6 +2182,17 @@ if (is_win) {
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-unroll-runtime-multi-exit",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-adce-remove-loops",
"-Wl,-mllvm,-enable-cse-in-irtranslator",
"-Wl,-mllvm,-enable-cse-in-legalizer",
"-Wl,-mllvm,-scalar-evolution-use-expensive-range-sharpening",
"-Wl,-mllvm,-loop-rotate-multi",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-masked-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-gvn-hoist-max-bbs=-1",
"-Wl,-mllvm,-gvn-hoist-max-depth=-1",
"-Wl,-mllvm,-gvn-hoist-max-chain-length=-1",
]
if (is_android) {