> -----Original Message-----
> From: Saurabh Jha via Sourceware Forge <forge-bot+saurabh.jha@forge-
> stage.sourceware.org>
> Sent: 18 November 2026 12:59
> To: gcc-patches mailing list <[email protected]>
> Cc: Tamar Christina <[email protected]>
> Subject: [PATCH v2 2/2] aarch64: Change SVE2 comparison costs for Neoverse
> V3
> 
> From: Saurabh Jha <[email protected]>
> 
> Currently, we underestimate vector comparison costs for Neoverse V3.
> This leads to unnecessary vectorisation in cases where scalar code would
> have been more performant.
> 
> This patch increases the SVE int and fp comparison costs from 1 to 4,
> while keeping SVE comparison predication costs to 0.
> 
> This change led to around 5% improvement in the execution time of SPEC
> 2017 541.leela_r benchmark against current master while using the
> compiler options '-Ofast -mcpu=neoverse-v3' on a Neoverse V3 core.
> 
> gcc/ChangeLog:
> 
>       * config/aarch64/tuning_models/neoversev3.h: Increase
>       int_cmp_ops and fp_cmp_ops from 1 to 4.

OK.

Thanks,
Tamar

> ---
>  gcc/config/aarch64/tuning_models/neoversev3.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/config/aarch64/tuning_models/neoversev3.h
> b/gcc/config/aarch64/tuning_models/neoversev3.h
> index f88d74da50acb..e8043eb1ac198 100644
> --- a/gcc/config/aarch64/tuning_models/neoversev3.h
> +++ b/gcc/config/aarch64/tuning_models/neoversev3.h
> @@ -151,9 +151,9 @@ static const aarch64_sve_vec_issue_info
> neoversev3_sve_issue_info =
>    },
>    2, /* pred_ops_per_cycle  */
>    1, /* while_pred_ops  */
> -  1, /* int_cmp_ops  */
> +  4, /* int_cmp_ops  */
>    0, /* int_cmp_pred_ops  */
> -  1, /* fp_cmp_ops  */
> +  4, /* fp_cmp_ops  */
>    0, /* fp_cmp_pred_ops  */
>    1, /* gather_scatter_pair_general_ops  */
>    1 /* gather_scatter_pair_pred_ops  */
> --
> 2.56.0

Reply via email to