Bug 1508547 - Disable the machine outliner on Android. r=dmajor

It's enabled by default as of clang 7 with -Oz on aarch64 (that is,
afaict, the only platform where it's enabled), and regresses our
performance on speedometer.

Differential Revision: https://phabricator.services.mozilla.com/D12394

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2018-11-21 01:13:07 +00:00
parent be9430ed4b
commit b42fb36df3

View File

@ -762,6 +762,13 @@ case "$target" in
# From https://github.com/android-ndk/ndk/issues/133#issuecomment-308549264
# -Oz is smaller than -Os on clang.
MOZ_OPTIMIZE_FLAGS="-Oz"
# Disable the outliner, which causes performance regressions, and is
# enabled on some platforms at -Oz.
DISABLE_OUTLINER="-mno-outline"
_SAVE_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $DISABLE_OUTLINER"
AC_TRY_COMPILE(,,[MOZ_OPTIMIZE_FLAGS="$MOZ_OPTIMIZE_FLAGS $DISABLE_OUTLINER"])
CFLAGS="$_SAVE_CFLAGS"
fi
;;