Skip to content

Commit

Permalink
remove alot o' llvm flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Apr 4, 2024
1 parent 8d050fc commit c55c6b3
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 238 deletions.
43 changes: 0 additions & 43 deletions other/AVX2/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2322,19 +2322,8 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"/O2",
"/clang:-O3",
"/clang:-msse3",
Expand All @@ -2354,18 +2343,8 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-loop-distribute",
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-enable-dfa-jump-thread",
]

if (use_polly == true) {
Expand Down Expand Up @@ -2398,36 +2377,14 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"-O3",
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-enable-cond-stores-vec",
"-Wl,-mllvm,-slp-vectorize-hor-store",
"-Wl,-mllvm,-scalar-evolution-use-expensive-range-sharpening",
"-Wl,-mllvm,-loop-rotate-multi",
"-Wl,-mllvm,-enable-loop-distribute",
"-Wl,-mllvm,-enable-unroll-and-jam",
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-masked-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-enable-dfa-jump-thread",
"-Wl,-O3",
]

Expand Down
25 changes: 2 additions & 23 deletions other/CrOS/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2311,19 +2311,8 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"/O2",
"/clang:-O3",
"/clang:-msse3",
Expand All @@ -2334,18 +2323,8 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-loop-distribute",
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-enable-dfa-jump-thread",
]

if (use_polly == true) {
Expand Down Expand Up @@ -2378,13 +2357,13 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-gvn-hoist",
"-O3",
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2",
"-Wl,-O3",
Expand Down
43 changes: 0 additions & 43 deletions other/SSE2/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2313,19 +2313,8 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"/O2",
"/clang:-O3",
"/clang:-mmmx",
Expand All @@ -2336,18 +2325,8 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-loop-distribute",
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-enable-dfa-jump-thread",
]

if (use_polly == true) {
Expand Down Expand Up @@ -2380,36 +2359,14 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"-O3",
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-enable-cond-stores-vec",
"-Wl,-mllvm,-slp-vectorize-hor-store",
"-Wl,-mllvm,-scalar-evolution-use-expensive-range-sharpening",
"-Wl,-mllvm,-loop-rotate-multi",
"-Wl,-mllvm,-enable-loop-distribute",
"-Wl,-mllvm,-enable-unroll-and-jam",
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-masked-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-enable-dfa-jump-thread",
"-Wl,-O3",
]

Expand Down
43 changes: 0 additions & 43 deletions other/SSE3/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2308,38 +2308,17 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"/O2",
"/clang:-O3",
"/clang:-msse3",
"-Xclang", "-O3",
]

common_optimize_on_ldflags += [
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-loop-distribute",
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-enable-dfa-jump-thread",
]

if (use_polly == true) {
Expand Down Expand Up @@ -2372,36 +2351,14 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"-O3",
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-enable-cond-stores-vec",
"-Wl,-mllvm,-slp-vectorize-hor-store",
"-Wl,-mllvm,-scalar-evolution-use-expensive-range-sharpening",
"-Wl,-mllvm,-loop-rotate-multi",
"-Wl,-mllvm,-enable-loop-distribute",
"-Wl,-mllvm,-enable-unroll-and-jam",
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-masked-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-enable-dfa-jump-thread",
"-Wl,-O3",
]

Expand Down
43 changes: 0 additions & 43 deletions other/SSE4.1/build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -2310,19 +2310,8 @@ if (is_win) {
}

common_optimize_on_cflags += [
"-Xclang", "-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"/O2",
"/clang:-O3",
"/clang:-msse3",
Expand All @@ -2332,18 +2321,8 @@ if (is_win) {
]

common_optimize_on_ldflags += [
"-mllvm:-enable-cond-stores-vec",
"-mllvm:-slp-vectorize-hor-store",
"-mllvm:-scalar-evolution-use-expensive-range-sharpening",
"-mllvm:-loop-rotate-multi",
"-mllvm:-enable-loop-distribute",
"-mllvm:-enable-unroll-and-jam",
"-mllvm:-interleave-small-loop-scalar-reduction",
"-mllvm:-aggressive-ext-opt",
"-mllvm:-enable-interleaved-mem-accesses",
"-mllvm:-enable-masked-interleaved-mem-accesses",
"-mllvm:-enable-gvn-hoist",
"-mllvm:-enable-dfa-jump-thread",
]

if (use_polly == true) {
Expand Down Expand Up @@ -2376,36 +2355,14 @@ if (is_win) {
common_optimize_on_ldflags = []

common_optimize_on_cflags += [
"-freroll-loops",
"-mllvm", "-enable-cond-stores-vec",
"-mllvm", "-slp-vectorize-hor-store",
"-mllvm", "-scalar-evolution-use-expensive-range-sharpening",
"-mllvm", "-loop-rotate-multi",
"-mllvm", "-enable-loop-distribute",
"-mllvm", "-enable-unroll-and-jam",
"-mllvm", "-interleave-small-loop-scalar-reduction",
"-mllvm", "-aggressive-ext-opt",
"-mllvm", "-enable-interleaved-mem-accesses",
"-mllvm", "-enable-masked-interleaved-mem-accesses",
"-mllvm", "-enable-gvn-hoist",
"-mllvm", "-enable-dfa-jump-thread",
"-O3",
]

common_optimize_on_ldflags += [
"-freroll-loops",
"-Wl,-mllvm,-enable-cond-stores-vec",
"-Wl,-mllvm,-slp-vectorize-hor-store",
"-Wl,-mllvm,-scalar-evolution-use-expensive-range-sharpening",
"-Wl,-mllvm,-loop-rotate-multi",
"-Wl,-mllvm,-enable-loop-distribute",
"-Wl,-mllvm,-enable-unroll-and-jam",
"-Wl,-mllvm,-interleave-small-loop-scalar-reduction",
"-Wl,-mllvm,-aggressive-ext-opt",
"-Wl,-mllvm,-enable-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-masked-interleaved-mem-accesses",
"-Wl,-mllvm,-enable-gvn-hoist",
"-Wl,-mllvm,-enable-dfa-jump-thread",
"-Wl,-O3",
]

Expand Down
Loading

0 comments on commit c55c6b3

Please sign in to comment.