From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24397 invoked by alias); 31 May 2019 11:52:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 24383 invoked by uid 89); 31 May 2019 11:52:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=02, Increase X-HELO: EUR03-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr50061.outbound.protection.outlook.com (HELO EUR03-VE1-obe.outbound.protection.outlook.com) (40.107.5.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 May 2019 11:52:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eLl48/dpISYAAJbBwFcD7szBLuvBSfrm5hGCpXBJPzQ=; b=khZCrxiFdcikqYJMQb4CImgZna61ww3LgRJ5ByDZD2474ld1tfCrhYZXZidDx6N74q8NSV7TE48mNFesyYdsqf239MVC53vyUV7Wd25S0sH3QSXiiGlHQZLnTbZ+r6Orb0XZLQfma9X5+JVmlvUbpzSdmBwHHxdwl+TFx5ODbhA= Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com (10.168.62.22) by VI1PR0801MB1854.eurprd08.prod.outlook.com (10.168.68.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.17; Fri, 31 May 2019 11:52:33 +0000 Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::fd18:cb50:3e52:9878]) by VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::fd18:cb50:3e52:9878%7]) with mapi id 15.20.1922.021; Fri, 31 May 2019 11:52:32 +0000 From: Wilco Dijkstra To: GCC Patches , James Greenhalgh , Richard Earnshaw , Ramana Radhakrishnan , Richard Sandiford CC: nd Subject: [PATCH][AArch64] Increase default function alignment Date: Fri, 31 May 2019 12:28:00 -0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:5236; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Wilco.Dijkstra@arm.com X-SW-Source: 2019-05/txt/msg02123.txt.bz2 With -mcpu=3Dgeneric the function alignment is currently 8, however almost = all supported cores prefer 16 or higher, so increase the default to 16:12. This gives ~0.2% performance increase on SPECINT2017, while codesize is 0.1= 2% larger. ChangeLog: 2019-05-31 Wilco Dijkstra * config/aarch64/aarch64.c (generic_tunings): Set function alignment to 16. -- diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 0023cb37bbae5afe9387840c1bb6b43586d4fac2..ed1422af6aab5e3c6eeea37ec57= e69b64092a0ab 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -693,7 +693,7 @@ static const struct tune_params generic_tunings =3D 4, /* memmov_cost */ 2, /* issue_rate */ (AARCH64_FUSE_AES_AESMC), /* fusible_ops */ - "8", /* function_align. */ + "16:12", /* function_align. */ "4", /* jump_align. */ "8", /* loop_align. */ 2, /* int_reassoc_width. */