]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Set AARCH64_EXTRA_TUNE_PREFER_ADVSIMD_AUTOVEC for Neoverse N2
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 12 Mar 2021 13:18:00 +0000 (13:18 +0000)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 12 Mar 2021 13:18:00 +0000 (13:18 +0000)
This patch tweaks the Neoverse N2 tuning on the GCC 10 branch to have it
in line with GCC 8 and 9 to prefer AdvancedSIMD over SVE for
auto-vectorisation.

gcc/ChangeLog:

* config/aarch64/aarch64.c (neoversen2_tunings): Set
AARCH64_EXTRA_TUNE_PREFER_ADVSIMD_AUTOVEC tune_flags.

gcc/config/aarch64/aarch64.c

index 775f79d88ff8e07a32b9ce44b4afcc5cbee5a1db..5bd5c458ae0428bd177e1f30c2f4c5b687d98752 100644 (file)
@@ -1430,7 +1430,7 @@ static const struct tune_params neoversen2_tunings =
   2,   /* min_div_recip_mul_df.  */
   0,   /* max_case_values.  */
   tune_params::AUTOPREFETCHER_WEAK,    /* autoprefetcher_model.  */
-  (AARCH64_EXTRA_TUNE_NONE),   /* tune_flags.  */
+  (AARCH64_EXTRA_TUNE_PREFER_ADVSIMD_AUTOVEC), /* tune_flags.  */
   &generic_prefetch_tune
 };