https://gcc.gnu.org/g:42e3c88c8ee994422554b44bdd137522329008d1
commit r17-6454-g42e3c88c8ee994422554b44bdd137522329008d1 Author: Saurabh Jha <[email protected]> Date: Fri Oct 30 12:58:23 2026 +0000 aarch64: Change SVE2 comparison costs for Neoverse V3 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. Diff: --- 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 f88d74da50ac..e8043eb1ac19 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 */
