Skip to content

Commit

Permalink
add experimental opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Apr 28, 2023
1 parent 0cd4451 commit 18ef745
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/build/config/compiler/BUILD.gn
Expand Up @@ -2057,6 +2057,7 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-extra-vectorizer-passes",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
Expand All @@ -2070,6 +2071,7 @@ if (is_win) {
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-enable-loop-flatten",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
Expand All @@ -2084,6 +2086,7 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-mllvm:-freroll-loops",
"-mllvm:-extra-vectorizer-passes",
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
Expand All @@ -2097,6 +2100,7 @@ if (is_win) {
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-enable-loop-flatten",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-unroll-runtime",
"-mllvm:-unroll-runtime-multi-exit",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
Expand All @@ -2109,6 +2113,7 @@ if (is_win) {
"-mllvm:-polly",
"-mllvm:-polly-detect-profitability-min-per-loop-insts=40",
"-mllvm:-polly-invariant-load-hoisting",
"-mllvm:-polly-run-dce",
"-mllvm:-polly-vectorizer=stripmine",
]
}
Expand All @@ -2130,6 +2135,7 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-extra-vectorizer-passes",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
Expand All @@ -2143,6 +2149,7 @@ if (is_win) {
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-enable-loop-flatten",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-unroll-runtime",
"-mllvm", "-unroll-runtime-multi-exit",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
Expand All @@ -2152,6 +2159,7 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-extra-vectorizer-passes",
"-Wl,-mllvm,-enable-cond-stores-vec",
"-Wl,-mllvm,-slp-vectorize-hor-store",
Expand All @@ -2165,6 +2173,7 @@ if (is_win) {
"-Wl,-mllvm,-enable-unroll-and-jam",
"-Wl,-mllvm,-enable-loop-flatten",
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-unroll-runtime",
"-Wl,-mllvm,-unroll-runtime-multi-exit",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
Expand All @@ -2178,6 +2187,7 @@ if (is_win) {
"-Wl,-mllvm,-polly",
"-Wl,-mllvm,-polly-detect-profitability-min-per-loop-insts=40",
"-Wl,-mllvm,-polly-invariant-load-hoisting",
"-Wl,-mllvm,-polly-run-dce",
"-Wl,-mllvm,-polly-vectorizer=stripmine",
]
}
Expand Down

0 comments on commit 18ef745

Please sign in to comment.