From patchwork Mon Nov 18 15:55:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 1196833 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-513936-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="xuUN7tyG"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="f7tfd47J"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="f7tfd47J"; dkim-atps=neutral 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 47Gtpf18CYz9sPJ for ; Tue, 19 Nov 2019 02:55:53 +1100 (AEDT) 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:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=a35 hsXqkmV9iCocmFF6KQyPE/wqfICyXKM2pVvJZnWyLf2q/RSj86Op17hXpWZpNFlO +SvvVSL3/Plb8COo6o/B7ncfGGDKvKHE0OI8w7NQVtl2e8KM4dxEVzk0Z/1NgCVv tYFBr8h59U5Q8VCY806mw0SiyO+2+qzj6ghnZxO0= 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:content-type :content-transfer-encoding:mime-version; s=default; bh=W6GWAb29B BRs+LrchPpsIB+q+Ow=; b=xuUN7tyGBju+tTDS9DwkCgjrYP6bZjw1r3F/EwoOD UrwhcgXbiyx6IxcPOVeZmtyWWlS4LF/ShzY5WSLG34CjTh/YXcYNovwBb1rm9CKw rVKOFxcp/VtNt62nP+uvHiGw+AlP/VJc3cAvbpodBDBm3O6/5Tb8HoIPsWcy+8eD 0M= Received: (qmail 43439 invoked by alias); 18 Nov 2019 15:55:47 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 43426 invoked by uid 89); 18 Nov 2019 15:55:47 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy=0.7, 0.2 X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr10040.outbound.protection.outlook.com (HELO EUR02-HE1-obe.outbound.protection.outlook.com) (40.107.1.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Nov 2019 15:55:44 +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=FgrzrrUKTyzg+fgdBBmi1C+/zp8qv5rNUkjXuaEGjtY=; b=f7tfd47JyfTMSLQmo3zS+eHjzjUoAUYAsbK/YzsKdnmEPmA2sWRl3nLyEy5iE2vSsPPszc3yT71twettmsLCZvgHdCu/Y4o8f2e5SCtVbEZ+RcDRXBWn85IKx4tCBpfYbBZX8bCqriZdxsZj68xVf1z/7PQasoEIwdH6JaXdPc8= Received: from VI1PR0802CA0034.eurprd08.prod.outlook.com (2603:10a6:800:a9::20) by AM5PR0801MB2068.eurprd08.prod.outlook.com (2603:10a6:203:4e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Mon, 18 Nov 2019 15:55:41 +0000 Received: from VE1EUR03FT019.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by VI1PR0802CA0034.outlook.office365.com (2603:10a6:800:a9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23 via Frontend Transport; Mon, 18 Nov 2019 15:55:41 +0000 Authentication-Results: spf=fail (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT019.mail.protection.outlook.com (10.152.18.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23 via Frontend Transport; Mon, 18 Nov 2019 15:55:41 +0000 Received: ("Tessian outbound 927f2cdd66cc:v33"); Mon, 18 Nov 2019 15:55:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 5b58f7138f7cf295 X-CR-MTA-TID: 64aa7808 Received: from 4fab3ca83d2e.2 (cr-mta-lb-1.cr-mta-net [104.47.0.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id B841D2FC-D581-4B12-8286-B45B07552FE2.1; Mon, 18 Nov 2019 15:55:35 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01lp2052.outbound.protection.outlook.com [104.47.0.52]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4fab3ca83d2e.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 18 Nov 2019 15:55:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rs3paWMjaa7Rf95TBYXLu0B/Z5SwuydwYakySK0OyDqltHFOBkesjgixZgUs7HrXT4E+GJbGEIXUuHmykUw9bLuQaUfRfb42jO2zFyHNGHo4eG+scbBnzNlQ1Fa70AsYVe/NLGIrv6wzWVlqRlYm/bFpEKpBkx48UAZG2MxXEl/nxI+1iqi8+VBSmbHu/mINT3X7KG4dc3ZQpCNONr+k/OyfPXG8izvmtA2akPWLQR8LZ7bLB5Yp1Kbt8ZtgmAJP1yyYkx/QTNH+0+Vz7AD+B2i32tCgG3XzzO4KfQg7EQQgIxFWTVH6miiAqZYpLhe2uIBfpVhmme3auMVaxDeoWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FgrzrrUKTyzg+fgdBBmi1C+/zp8qv5rNUkjXuaEGjtY=; b=E/HRtTQgQPDNFqBus9xWgLqoKZJJPBVSbFSEHXwyRPsODiHZf8I+bPzJYGh8tYDqQR+R8d6XONojomqwwAnytg87hq+SScIEZtltjEga+zvzpIjuH53jo7y3WdIdelao/Vcuizc/zwjxqfSPAJMTkzbZMqkCWctePTNbROc30HkGUeEnv+fNn/UF8hnUaXsZ8TjgzHtN9f6It1fr9dH81CcrsksxMm2qXDISjlxyeEihBRvsiAaEex2OM9hFXwcx8HIJ8oP1uQyQWayxv/HKdQuB+JUhFoOgpIG31wj5SVsQAVf8BmWhEdsFfc4Pmyd6W3rTWJyXPXKJpUjr1Mf0BA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none 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=FgrzrrUKTyzg+fgdBBmi1C+/zp8qv5rNUkjXuaEGjtY=; b=f7tfd47JyfTMSLQmo3zS+eHjzjUoAUYAsbK/YzsKdnmEPmA2sWRl3nLyEy5iE2vSsPPszc3yT71twettmsLCZvgHdCu/Y4o8f2e5SCtVbEZ+RcDRXBWn85IKx4tCBpfYbBZX8bCqriZdxsZj68xVf1z/7PQasoEIwdH6JaXdPc8= Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com (10.168.62.22) by VI1PR0801MB1775.eurprd08.prod.outlook.com (10.168.65.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.28; Mon, 18 Nov 2019 15:55:33 +0000 Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::f46f:30ca:e545:36d4]) by VI1PR0801MB2127.eurprd08.prod.outlook.com ([fe80::f46f:30ca:e545:36d4%9]) with mapi id 15.20.2451.029; Mon, 18 Nov 2019 15:55:33 +0000 From: Wilco Dijkstra To: GCC Patches CC: Kyrylo Tkachov , Richard Earnshaw , Richard Sandiford Subject: [PATCH][Arm] Set Armv7-A tune to Cortex-A53 Date: Mon, 18 Nov 2019 15:55:33 +0000 Message-ID: Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; x-ms-exchange-transport-forked: True x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:635;OLM:635; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(189003)(199004)(54534003)(74316002)(256004)(99286004)(26005)(66446008)(64756008)(66556008)(76116006)(4001150100001)(66946007)(3846002)(6116002)(316002)(33656002)(4326008)(5660300002)(66066001)(186003)(476003)(486006)(102836004)(54906003)(7696005)(66476007)(6506007)(25786009)(2906002)(6916009)(71190400001)(71200400001)(86362001)(14454004)(478600001)(7736002)(305945005)(8936002)(55016002)(9686003)(8676002)(81156014)(81166006)(6436002)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB1775; H:VI1PR0801MB2127.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: S7vuv+snGJ9qymnnSkddNyhyQFbr6VM7uTrzgE8as9HZ/inUBuHZ4lwqENLYKwbld++YPDHBlC+FIdovjM38+hYXP2TYh/rQBmAWLoCwaE/MciIAYel9UfFW5C6RmtXw+c92ZVcA+FkqBpZKCigfZdXVaif3Or+b69HvPFsycaAn5Sw7WlX4W021SAIX+6o0UjWHNJqp8kfijeRqVMzN0BUEX3AgxGRt+gC8rXa4qZxt8XPtoeg/naDBE04Dpju60niqwcSq/yicanhl7FmWnxmrFlr+Kezn4ctW7B2iawFZu8KEPkcKolRBvdMiqCZ16ZODtTPnARmCaeIbdgfGZcscu4zrwMI89LHiQIqcvf1T1wEAPajRZaKtWppEC06TqwZjizPnPzM6xlQGRDT2un+LVF4EP6J4VctcywgP6B2a8WxqhTZcw0l+l8WUk+2y MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: acf6a4b1-6113-499c-f421-08d76c3fbeb0 By default Armv7-A tunes for Cortex-A8. This is an ancient core today and the settings are no longer useful for newer cores. So switch to Cortex-A53 tuning since it works well across a wide range of modern cores. On SPECINT2006 the performance gain is 0.7% compared to Cortex-A8 tuning, and codesize reduces by 0.2%. OK for commit? ChangeLog: 2019-11-15 Wilco Dijkstra * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53. (armv7-a): Likewise. (armv7ve): Likewise. diff --git a/gcc/config/arm/arm-cpus.in b/gcc/config/arm/arm-cpus.in index 50379a0a10a96c7fd501b401adbd679737b7a322..44e6cc6bdb604eb992d28dd74845edfac9abaad5 100644 --- a/gcc/config/arm/arm-cpus.in +++ b/gcc/config/arm/arm-cpus.in @@ -415,7 +415,7 @@ begin arch armv6s-m end arch armv6s-m begin arch armv7 - tune for cortex-a8 + tune for cortex-a53 tune flags CO_PROC base 7 isa ARMv7 @@ -426,7 +426,7 @@ begin arch armv7 end arch armv7 begin arch armv7-a - tune for cortex-a8 + tune for cortex-a53 tune flags CO_PROC base 7A profile A @@ -451,7 +451,7 @@ begin arch armv7-a end arch armv7-a begin arch armv7ve - tune for cortex-a8 + tune for cortex-a53 tune flags CO_PROC base 7A profile A