From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1923) id 9F0F53858D39; Mon, 27 Mar 2023 09:12:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F0F53858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679908358; bh=dp3etG4KsW4rQxr3PiKxDIhpvShsclZWJMIQbsT43kc=; h=From:To:Subject:Date:From; b=pAtxEDXspE/wXGebVeCJIi3T1YKDrPOMuq9KQLO0wVMIrSVN9lbJphSS4v4HXXu5B Jp3XbCItF9gDxeLnjFFp/RUV9lP3SQP4g71IsDAE8tCEp2wILYnsRPFbH1cBdxPZsq Ete1ynns5mEmwNq96wsJigIOql5tpceW66go4IGA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Philipp Tomsich To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6875] aarch64: update ampere1 vectorization cost X-Act-Checkin: gcc X-Git-Author: Philipp Tomsich X-Git-Refname: refs/heads/master X-Git-Oldrev: 059961927624224c63c798873fc3b0c0c7abb0d0 X-Git-Newrev: ff1f2f2412bda118f7ddc10e69bd4284d9b24b9e Message-Id: <20230327091238.9F0F53858D39@sourceware.org> Date: Mon, 27 Mar 2023 09:12:38 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ff1f2f2412bda118f7ddc10e69bd4284d9b24b9e commit r13-6875-gff1f2f2412bda118f7ddc10e69bd4284d9b24b9e Author: Philipp Tomsich Date: Mon Mar 27 09:16:22 2023 +0200 aarch64: update ampere1 vectorization cost The original submission of AmpereOne (-mcpu=ampere1) costs occurred prior to exhaustive testing of vectorizable workloads against hardware. Adjust the vector costs to achieve the best results and more closely match the underlying hardware. gcc/ChangeLog: * config/aarch64/aarch64.cc: Update vector costs for ampere1. Co-Authored-By: Jiangning Liu Co-Authored-By: Manolis Tsamis Diff: --- gcc/config/aarch64/aarch64.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index b27f4354031..661fff65cea 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -1132,7 +1132,7 @@ static const struct cpu_vector_cost thunderx3t110_vector_cost = static const advsimd_vec_cost ampere1_advsimd_vector_cost = { - 3, /* int_stmt_cost */ + 1, /* int_stmt_cost */ 3, /* fp_stmt_cost */ 0, /* ld2_st2_permute_cost */ 0, /* ld3_st3_permute_cost */ @@ -1148,17 +1148,17 @@ static const advsimd_vec_cost ampere1_advsimd_vector_cost = 8, /* store_elt_extra_cost */ 6, /* vec_to_scalar_cost */ 7, /* scalar_to_vec_cost */ - 5, /* align_load_cost */ - 5, /* unalign_load_cost */ - 2, /* unalign_store_cost */ - 2 /* store_cost */ + 4, /* align_load_cost */ + 4, /* unalign_load_cost */ + 1, /* unalign_store_cost */ + 1 /* store_cost */ }; /* Ampere-1 costs for vector insn classes. */ static const struct cpu_vector_cost ampere1_vector_cost = { 1, /* scalar_int_stmt_cost */ - 1, /* scalar_fp_stmt_cost */ + 3, /* scalar_fp_stmt_cost */ 4, /* scalar_load_cost */ 1, /* scalar_store_cost */ 1, /* cond_taken_branch_cost */