From 18ef7450f3675a2ec3aaba54b6b1ea8b215003cb Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Fri, 28 Apr 2023 09:43:42 -0500 Subject: [PATCH] add experimental opts --- src/build/config/compiler/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/build/config/compiler/BUILD.gn b/src/build/config/compiler/BUILD.gn index 24235ac1f..5604a5029 100644 --- a/src/build/config/compiler/BUILD.gn +++ b/src/build/config/compiler/BUILD.gn @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", ] } @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", ] }