Message ID | AM5PR0802MB26101A40D84B3D49061EE09C831B0@AM5PR0802MB2610.eurprd08.prod.outlook.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-451798-incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w833Q32pVz9s4s for <incoming@patchwork.ozlabs.org>; Fri, 21 Apr 2017 01:40:18 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="J+JcCJGu"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=ynuE2EfETZ264Xd4QC50MnoEKdK+BHuxa1jOcisuMfRVN1BCIV0tB aL8OFilrQ2VmbwkTi2QKDy3A6oywHN4ZeTv7NvbYJNxXJ14nmrhYBEFIoHKjYs9o 4oTfeaBMcxlJunjnod1lqFCo71BkT9GxfavB8Ar2tzH7RxSOV+ezrI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; s=default; bh=lTfVZ/L0PiEp6cqF7GzlCIT3U3M=; b=J+JcCJGu/x7Z9BlXjt/gRi4AwZ3r 49ytYLXDuY3UfRmyJhheIo41qpqeOvctLDR1TD24NoMkZj9/bHgrDJj5R0/4Wzcu S9Ilys8WNPMHGmygXHwHgpKrWpct0eDbPLd8KxkqM3VBkpALZUVIFESbHpuCY/0z lVteEhQBDKc0VoI= Received: (qmail 48929 invoked by alias); 20 Apr 2017 15:40:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 48891 invoked by uid 89); 20 Apr 2017 15:40:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 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.2 spammy= X-HELO: EUR01-VE1-obe.outbound.protection.outlook.com Received: from mail-ve1eur01on0042.outbound.protection.outlook.com (HELO EUR01-VE1-obe.outbound.protection.outlook.com) (104.47.1.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Apr 2017 15:40:05 +0000 Received: from AM5PR0802MB2610.eurprd08.prod.outlook.com (10.175.46.18) by HE1PR08MB2666.eurprd08.prod.outlook.com (10.170.248.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Thu, 20 Apr 2017 15:40:02 +0000 Received: from AM5PR0802MB2610.eurprd08.prod.outlook.com ([10.175.46.18]) by AM5PR0802MB2610.eurprd08.prod.outlook.com ([10.175.46.18]) with mapi id 15.01.1047.013; Thu, 20 Apr 2017 15:40:02 +0000 From: Wilco Dijkstra <Wilco.Dijkstra@arm.com> To: GCC Patches <gcc-patches@gcc.gnu.org>, James Greenhalgh <James.Greenhalgh@arm.com> CC: nd <nd@arm.com>, "jim.wilson@linaro.org" <jim.wilson@linaro.org>, "Evandro Menezes" <e.menezes@samsung.com>, "Andrew.pinski@cavium.com" <Andrew.pinski@cavium.com> Subject: Re: [PATCH][AArch64] Update alignment for -mcpu=generic Date: Thu, 20 Apr 2017 15:40:02 +0000 Message-ID: <AM5PR0802MB26101A40D84B3D49061EE09C831B0@AM5PR0802MB2610.eurprd08.prod.outlook.com> References: <AM5PR0802MB2610B7B83309DD4553ED5B9383030@AM5PR0802MB2610.eurprd08.prod.outlook.com> In-Reply-To: <AM5PR0802MB2610B7B83309DD4553ED5B9383030@AM5PR0802MB2610.eurprd08.prod.outlook.com> authentication-results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=arm.com; x-microsoft-exchange-diagnostics: 1; HE1PR08MB2666; 7:A0sNzNbLLWKsEPsvBM4fsaeUMwPshWTtjMFE6Fd8jKGdRZBymlUW7FyeiJoOLIe6eNRG5DZMbxIq4616VaIwv+IoessztrtaR7OQEHFMvmY4355BpjgVDvtLBa7o9fhmmmwTGD/PP9YhK+BzMSJbl76DLjR7pE/x+HG5qc7yRAqrb8+Qf+8ngbuAbSeeREx7TyprDskq1bIe8J1GvyJoGKLxcXKGHVhA7CDmQW62qSKahCsZyBP5uX3zdi87XaLmWuxftZ9wtpR6w2Ju1I+VPbT7BP+kunpc2lazNHHx3HCGpQncxB6oUFEQZX3yH9d0bgneeXL2D3NJQzrAzhlIPw== x-ms-office365-filtering-correlation-id: aec48089-f3d8-46fb-f248-08d4880382b6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR08MB2666; nodisclaimer: True x-microsoft-antispam-prvs: <HE1PR08MB2666667246B53485D5867E94831B0@HE1PR08MB2666.eurprd08.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(180628864354917)(22074186197030)(183786458502308); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:HE1PR08MB2666; BCL:0; PCL:0; RULEID:; SRVR:HE1PR08MB2666; x-forefront-prvs: 02830F0362 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(39450400003)(39400400002)(39840400002)(39850400002)(39410400002)(377424004)(4326008)(5660300001)(66066001)(229853002)(6246003)(33656002)(189998001)(2900100001)(86362001)(2906002)(77096006)(6506006)(6306002)(9686003)(76176999)(53546009)(50986999)(99286003)(54906002)(54356999)(55016002)(25786009)(53936002)(38730400002)(122556002)(6636002)(81166006)(8936002)(8676002)(102836003)(3846002)(575784001)(6116002)(7696004)(2950100002)(7736002)(74316002)(3660700001)(305945005)(3280700002)(15650500001)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR08MB2666; H:AM5PR0802MB2610.eurprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2017 15:40:02.4498 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB2666 |
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index c8cf7169a5d387de336920b50c83761dc0c96f3a..8b729b1b1f87316e940d7fc657f235a935ffa93e 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -538,8 +538,8 @@ static const struct tune_params generic_tunings = 2, /* issue_rate */ (AARCH64_FUSE_AES_AESMC), /* fusible_ops */ 8, /* function_align. */ - 8, /* jump_align. */ - 4, /* loop_align. */ + 4, /* jump_align. */ + 8, /* loop_align. */ 2, /* int_reassoc_width. */ 4, /* fp_reassoc_width. */ 1, /* vec_reassoc_width. */
ping From: Wilco Dijkstra Sent: 12 April 2017 13:58 To: GCC Patches Cc: nd; James Greenhalgh; jim.wilson@linaro.org; Evandro Menezes; Andrew.pinski@cavium.com Subject: [PATCH][AArch64] Update alignment for -mcpu=generic With -mcpu=generic the loop alignment is currently 4. All but one of the supported cores use 8 or higher. Since using 8 provides performance gains on several cores, it is best to use that by default. As discussed in [1], the jump alignment has no effect on performance, yet has a relatively high codesize cost [2], so setting it to 4 is best. This gives a 0.2% overall codesize improvement as well as performance gains in several benchmarks. Any objections? Bootstrap OK on AArch64, OK for stage 1? ChangeLog: 2017-04-12 Wilco Dijkstra <wdijkstr@arm.com> * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4. Set loop alignment to 8. [1] https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00574.html [2] https://gcc.gnu.org/ml/gcc-patches/2016-06/msg02075.html ---