From 04335a80742bb446356a302726ca8b90f3e71677 Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Thu, 16 Dec 2021 08:03:56 -0600 Subject: [PATCH] Fix loop optimizations. --- build/config/compiler/BUILD.gn | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 191e53cf..28a11156 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -1911,16 +1911,16 @@ if (is_win) { ] common_optimize_on_ldflags += [ - "-Wl,-mllvm,-extra-vectorizer-passes", - "-Wl,-mllvm,-enable-cond-stores-vec", - "-Wl,-mllvm,-slp-vectorize-hor-store", - "-Wl,-mllvm,-enable-loopinterchange", - "-Wl,-mllvm,-enable-loop-distribute", - "-Wl,-mllvm,-enable-unroll-and-jam", - "-Wl,-mllvm,-enable-loop-flatten", - "-Wl,-mllvm,-interleave-small-loop-scalar-reduction", - "-Wl,-mllvm,-unroll-runtime-multi-exit", - "-Wl,-mllvm,-aggressive-ext-opt", + "-mllvm:-extra-vectorizer-passes", + "-mllvm:-enable-cond-stores-vec", + "-mllvm:-slp-vectorize-hor-store", + "-mllvm:-enable-loopinterchange", + "-mllvm:-enable-loop-distribute", + "-mllvm:-enable-unroll-and-jam", + "-mllvm:-enable-loop-flatten", + "-mllvm:-interleave-small-loop-scalar-reduction", + "-mllvm:-unroll-runtime-multi-exit", + "-mllvm:-aggressive-ext-opt", ] # /OPT:ICF is not desirable in Debug builds, since code-folding can result in