diff --git a/arm/raspi/third_party/ffmpeg/libavutil/avconfig.h b/arm/raspi/third_party/ffmpeg/libavutil/avconfig.h new file mode 100644 index 00000000..51cfed14 --- /dev/null +++ b/arm/raspi/third_party/ffmpeg/libavutil/avconfig.h @@ -0,0 +1,7 @@ +/* Generated by ffconf */ +#ifndef AVUTIL_AVCONFIG_H +#define AVUTIL_AVCONFIG_H +#define AV_HAVE_BIGENDIAN 0 +#define AV_HAVE_FAST_UNALIGNED 0 +#endif +/* AVUTIL_AVCONFIG_H */ diff --git a/other/AVX2/build/config/compiler/BUILD.gn b/other/AVX2/build/config/compiler/BUILD.gn index ad2dcfe9..f080d83c 100644 --- a/other/AVX2/build/config/compiler/BUILD.gn +++ b/other/AVX2/build/config/compiler/BUILD.gn @@ -69,6 +69,9 @@ declare_args() { # When we are going to use gold we need to find it. # This is initialized below, after use_gold might have been overridden. gold_path = "" + + # Whether to enable LLVM's Polly optimizations. See https://polly.llvm.org/ + use_polly = false # Enable fatal linker warnings. Building Chromium with certain versions # of binutils can cause linker warning. @@ -2068,6 +2071,15 @@ if (is_win) { "-mllvm:-enable-gvn-hoist", ] + if (use_polly == true) { + common_optimize_on_ldflags += [ + "-mllvm:-polly", + "-mllvm:-polly-detect-profitability-min-per-loop-insts=40", + "-mllvm:-polly-invariant-load-hoisting", + "-mllvm:-polly-vectorizer=stripmine", + ] + } + # /OPT:ICF is not desirable in Debug builds, since code-folding can result in # misleading symbols in stack traces. if (!is_debug && !is_component_build) { @@ -2127,6 +2139,15 @@ if (is_win) { "-Wl,-mllvm,-enable-gvn-hoist", "-Wl,-O3", ] + + if (use_polly == true) { + common_optimize_on_ldflags += [ + "-Wl,-mllvm,-polly", + "-Wl,-mllvm,-polly-detect-profitability-min-per-loop-insts=40", + "-Wl,-mllvm,-polly-invariant-load-hoisting", + "-Wl,-mllvm,-polly-vectorizer=stripmine", + ] + } if (is_android) { # TODO(jdduke) Re-enable on mips after resolving linking diff --git a/src/third_party/ffmpeg/libavutil/avconfig.h b/src/third_party/ffmpeg/libavutil/avconfig.h new file mode 100644 index 00000000..51cfed14 --- /dev/null +++ b/src/third_party/ffmpeg/libavutil/avconfig.h @@ -0,0 +1,7 @@ +/* Generated by ffconf */ +#ifndef AVUTIL_AVCONFIG_H +#define AVUTIL_AVCONFIG_H +#define AV_HAVE_BIGENDIAN 0 +#define AV_HAVE_FAST_UNALIGNED 0 +#endif +/* AVUTIL_AVCONFIG_H */