From b2b194695f08cb04d8c5602f0cc32311155242fa Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Fri, 12 Mar 2021 13:18:00 +0000 Subject: [PATCH] aarch64: Set AARCH64_EXTRA_TUNE_PREFER_ADVSIMD_AUTOVEC for Neoverse N2 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 775f79d88ff8..5bd5c458ae04 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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 }; -- 2.47.2