From 1376d632888795eaf4d77eecd2fa4fb8d7ebe448 Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Fri, 28 Apr 2023 18:53:08 -0500 Subject: [PATCH] add extra opts --- other/AVX2/build/config/compiler/BUILD.gn | 10 ++++++++++ other/SSE2/build/config/compiler/BUILD.gn | 10 ++++++++++ other/SSE3/build/config/compiler/BUILD.gn | 10 ++++++++++ other/WIN7/README.md | 13 +++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 other/WIN7/README.md diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn index 1af45940..f134cfac 100644 --- a/other/AVX2/build/config/compiler/BUILD.gn +++ b/other/AVX2/build/config/compiler/BUILD.gn @@ -2065,6 +2065,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", @@ -2078,6 +2079,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", @@ -2093,6 +2095,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", @@ -2106,6 +2109,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", @@ -2118,6 +2122,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", ] } @@ -2139,6 +2144,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", @@ -2152,6 +2158,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", @@ -2161,6 +2168,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", @@ -2174,6 +2182,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", @@ -2187,6 +2196,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", ] } diff --git a/other/SSE2/build/config/compiler/BUILD.gn b/other/SSE2/build/config/compiler/BUILD.gn index e6bac206..b4b94eb9 100644 --- a/other/SSE2/build/config/compiler/BUILD.gn +++ b/other/SSE2/build/config/compiler/BUILD.gn @@ -2062,6 +2062,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", @@ -2075,6 +2076,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", @@ -2087,6 +2089,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", @@ -2100,6 +2103,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", @@ -2112,6 +2116,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", ] } @@ -2133,6 +2138,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", @@ -2146,6 +2152,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", @@ -2155,6 +2162,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", @@ -2168,6 +2176,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", @@ -2181,6 +2190,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", ] } diff --git a/other/SSE3/build/config/compiler/BUILD.gn b/other/SSE3/build/config/compiler/BUILD.gn index a11f6265..40856cc9 100644 --- a/other/SSE3/build/config/compiler/BUILD.gn +++ b/other/SSE3/build/config/compiler/BUILD.gn @@ -2062,6 +2062,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", @@ -2075,6 +2076,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", @@ -2087,6 +2089,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", @@ -2100,6 +2103,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", @@ -2112,6 +2116,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", ] } @@ -2133,6 +2138,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", @@ -2146,6 +2152,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", @@ -2155,6 +2162,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", @@ -2168,6 +2176,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", @@ -2181,6 +2190,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", ] } diff --git a/other/WIN7/README.md b/other/WIN7/README.md new file mode 100644 index 00000000..ef05dc56 --- /dev/null +++ b/other/WIN7/README.md @@ -0,0 +1,13 @@ +# Thorium for Windows 7/8/8.1   + +Chromium ended support for Windows 7, 8, 8.1 and derivatives like Server 2008 R2, Home Server 2011, Server 2012, and Server 2012 R2 starting with Chromium M110 :( + +See > https://support.google.com/chrome/thread/185534985/sunsetting-support-for-windows-7-8-8-1-and-windows-server-2012-and-2012-r2-in-early-2023 + +This dir used to host build files for Windows 7, and then I made a [branch](https://github.com/Alex313031/thorium/tree/WIN7), but then I decided to move it all to a whole 'nother repo. + +The new repo hosts AVX, AVX2, SSE3, and 32 Bit SSE2 builds, kept up to date with __M109__, and with backported patches from newer versions of Thorium. + +You can find it here > https://github.com/Alex313031/thorium-win7 + +