From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1130) id AFEDD38582B0; Thu, 22 Jun 2023 14:17:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFEDD38582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687443429; bh=8muCmGqPtkurRApZr85O+loQtDz2kpr84k9RYopTMrY=; h=From:To:Subject:Date:From; b=Z3xRMrq8jhfE6AcoiE3tZmjwxZadM7G5udSHhLEL9b5xPZQ1UmBs2ZOXOpvpA4cC+ fEWtCd4Xg4pWu4YYCGFsODKiB+svHMCUMgHVmPAA+Kgch/uzgtKRXQUAa1gMSwQc2w ujrbtpa7frEi0p+Z+tmzNihTI8/gKrQzSGJK9PWY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Sandiford To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2033] Change fma_reassoc_width tuning for ampere1 X-Act-Checkin: gcc X-Git-Author: Di Zhao OS X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 2cd0689a79498dcaaadc8cc5c1c4d0a452a4fb09 X-Git-Newrev: 4ced8363622b31910cda61796a28fe2cbf70faa7 Message-Id: <20230622141709.AFEDD38582B0@sourceware.org> Date: Thu, 22 Jun 2023 14:17:09 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4ced8363622b31910cda61796a28fe2cbf70faa7 commit r14-2033-g4ced8363622b31910cda61796a28fe2cbf70faa7 Author: Di Zhao OS Date: Thu Jun 22 15:16:57 2023 +0100 Change fma_reassoc_width tuning for ampere1 This patch enables reassociation of floating-point additions on ampere1. This brings about 1% overall benefit on spec2017 fprate cases. (There are minor regressions in 510.parest_r and 508.namd_r, analyzed here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110279 .) gcc/ChangeLog: * config/aarch64/aarch64.cc: Change fma_reassoc_width for ampere1. Diff: --- gcc/config/aarch64/aarch64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index b99f12c99e9..644ebdebc0e 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -1929,7 +1929,7 @@ static const struct tune_params ampere1_tunings = "32:16", /* loop_align. */ 2, /* int_reassoc_width. */ 4, /* fp_reassoc_width. */ - 1, /* fma_reassoc_width. */ + 4, /* fma_reassoc_width. */ 2, /* vec_reassoc_width. */ 2, /* min_div_recip_mul_sf. */ 2, /* min_div_recip_mul_df. */