From patchwork Wed Nov 6 13:57:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 1190434 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-512605-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="gM0xqQyI"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="3eZArU+i"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="3eZArU+i"; 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 477SlZ75lKz9sP6 for ; Thu, 7 Nov 2019 00:57:29 +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=c4Z gQDZctJPQfd55AiJneLRg3ANuodkoBJ54dDKBRX0j+Enz21c+tWzlrGjQE/ON8L1 S/H4kob2e8ei3JeOCYG2IQr4q1VrXWY6q/ARZPu+yMuhw1g83TMBtdbaZINoEqNy Aym9OJcitRgiBYQPZxk/6GTOZKIQc1+spR/yyDWg= 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=cZfbsD1Sh NpCAcVTybU7tE7ikeo=; b=gM0xqQyIJoNUiaeKm3DddSIikDoDbXNLfN9BAn+ts 1rp52kFlVSqIyMp7ti8SahtmtHxYk1/cQfPvPTPBkH7ZW7TzcIi/3JX5Dp1rbdsT bh9XPiPiXEWl86igDWrmzdmMqVP3uRvSkC3bQOTk1EC9f14oWsev1QJCG+vbaxRX nc= Received: (qmail 6255 invoked by alias); 6 Nov 2019 13:57:20 -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 6246 invoked by uid 89); 6 Nov 2019 13:57:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.9 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= X-HELO: EUR02-AM5-obe.outbound.protection.outlook.com Received: from mail-eopbgr00074.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (40.107.0.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Nov 2019 13:57:17 +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=ZszjRnvvZE+fWR7MHm++q+Vc74q4cT6mdr6M52YV5EI=; b=3eZArU+igxkQWdJvaqiwlh4zDUCfzoFZvFUFrJs9xy59NClvqC/f9lEj1eQWh4bGVSzxmaIhOR0tyH++PiXJ1YVXIligsJciU0lpokJFijASZOSLIKOXvtg/xPR5j/6VLu+Gp8budZ45mJN8EIpbhWs54pxmoXh6AP9LAiHXTCU= Received: from DB6PR0801CA0062.eurprd08.prod.outlook.com (2603:10a6:4:2b::30) by DB7PR08MB3082.eurprd08.prod.outlook.com (2603:10a6:5:1d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Wed, 6 Nov 2019 13:57:11 +0000 Received: from DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::201) by DB6PR0801CA0062.outlook.office365.com (2603:10a6:4:2b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2430.22 via Frontend Transport; Wed, 6 Nov 2019 13:57:11 +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 DB5EUR03FT041.mail.protection.outlook.com (10.152.21.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2430.21 via Frontend Transport; Wed, 6 Nov 2019 13:57:11 +0000 Received: ("Tessian outbound 081de437afc7:v33"); Wed, 06 Nov 2019 13:57:11 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0cde5ecbdb378d74 X-CR-MTA-TID: 64aa7808 Received: from 3bc5cb0eef1a.2 (cr-mta-lb-1.cr-mta-net [104.47.2.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3E76F716-B401-446F-9563-5D206024DA91.1; Wed, 06 Nov 2019 13:57:05 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01lp2058.outbound.protection.outlook.com [104.47.2.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3bc5cb0eef1a.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 06 Nov 2019 13:57:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aIjLqf2Dng7XSsEG+vnvad1y4UvYBRbX6QOc18SbnlrPmOvQlR6foxfZ58yiE/q4t59LFnlDle2LVIByzA0ZM7W3t9j2ruPOBead462jZbTHEUoXgJbBuCJC8xXyP1xwt97dv8tphzhQBqLXLvkaaRHZmauo/Csz3VaBLvvHqBpUviHqJGf3CS3KcfenezEsVBIpIyMqib3jmhWUMcyYV/3nk+SIOynqtEKzajPemMywXpWSkZZwnoODH0xcIxlJKlyKzsExCBBixiTTkUisgROaPZAr/lEZn1d9xzs1JlcAgR0g5b6wME7OMZzNjOabpbQ2cq56FgSb7a41zViy/w== 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=ZszjRnvvZE+fWR7MHm++q+Vc74q4cT6mdr6M52YV5EI=; b=HjsI1HTtIS4dYOkHRFY3nE0HuXApvQQuEhcUKdbDIRBQMTrMeuGJD//4PdLK74qzHEM2WvwnGtFDfHKhWAykVMXZLPy2aYuETzaZ5I08uV1WdZjuNz9Y8hpZMhF9bVtTrhybqJ3pAdxczfn9AufN2kLU3WIi/8mO1y0VM4Njm2kZ0/mif2JYvfrHT00E9tIh3VDpBRKqkvQLRaAAPkl4BApD/zddEzabI/SZilvSsHXGWUD7Oj2ELereW/a7a6wizPaFG6yl9huxNjkQCME2ftdCHrCU28BTnVLZc4lvcvxIpYDVJDqlgHF6trm+hJ0sEsi9ZLCZgDVZHb6Rsbaaxw== 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=ZszjRnvvZE+fWR7MHm++q+Vc74q4cT6mdr6M52YV5EI=; b=3eZArU+igxkQWdJvaqiwlh4zDUCfzoFZvFUFrJs9xy59NClvqC/f9lEj1eQWh4bGVSzxmaIhOR0tyH++PiXJ1YVXIligsJciU0lpokJFijASZOSLIKOXvtg/xPR5j/6VLu+Gp8budZ45mJN8EIpbhWs54pxmoXh6AP9LAiHXTCU= Received: from VI1PR0801MB2127.eurprd08.prod.outlook.com (10.168.62.22) by VI1PR0801MB2029.eurprd08.prod.outlook.com (10.173.71.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Wed, 6 Nov 2019 13:57:04 +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.2430.020; Wed, 6 Nov 2019 13:57:04 +0000 From: Wilco Dijkstra To: GCC Patches CC: Kyrylo Tkachov , Richard Earnshaw Subject: [PATCH][Arm] Only enable fsched-pressure with Ofast Date: Wed, 6 Nov 2019 13:57:04 +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:1201;OLM:1201; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(39860400002)(366004)(346002)(396003)(54534003)(199004)(189003)(66476007)(64756008)(66946007)(6916009)(54906003)(6436002)(76116006)(66556008)(4326008)(25786009)(14454004)(5660300002)(102836004)(8676002)(478600001)(3846002)(7736002)(256004)(6116002)(305945005)(66066001)(81156014)(66446008)(26005)(81166006)(99286004)(9686003)(486006)(476003)(86362001)(8936002)(316002)(2906002)(55016002)(33656002)(7696005)(74316002)(6506007)(186003)(71190400001)(71200400001)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0801MB2029; H:VI1PR0801MB2127.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: KKR4klbG0A79+y/PcI5JXw0R5gQZqk5FvNZFxqZPHvCfNJFEaEYPldXJm6r9pOQQ0Ic+pEy2t91PjIb8me0OUeXKtf0NKWB3RSNrgIapnzKxDxHLrCPyuecmDEcmqRuYUEcOC4Ux9uRSNj5MUGQV00c+pPzgKQK7lBZr61+5enwBQgoLr07B5MPwkKGKZnk88YOHqJjPMLrRSO49COW2qKBA6KXtAe6HE7DAnh/ip/FCqt/rGWA+FmfC5pvCEGu9Nc+A0c+BBFtx6/TdzFeaJI14XXPjjEM5zUs6OeCcWoisybq3Ape4WTO40SgzNg6ri5tMZz6i/dT0LhSbUHl3YbQi4HPCeEIQaUYIBL0mBOT/r2xOOG13CVdp77ANml6m5IThT55YlE4msY5C85IoVAVf4fo0WqAXU9InAQDn9QiOr50f2Avm2L941Vk6FGfX MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 94f59f90-dade-4aaf-c225-08d762c1346d The current pressure scheduler doesn't appear to correctly track register pressure and avoid creating unnecessary spills when register pressure is high. As a result disabling the early scheduler improves integer performance considerably and reduces codesize as a bonus. Since scheduling floating point code is generally beneficial (more registers and higher latencies), only enable the pressure scheduler with -Ofast. On Cortex-A57 this gives a 0.7% performance gain on SPECINT2006 as well as a 0.2% codesize reduction. Bootstrapped on armhf. OK for commit? ChangeLog: 2019-11-06 Wilco Dijkstra * gcc/common/config/arm-common.c (arm_option_optimization_table): Enable fsched_pressure with Ofast only. diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c index 41a920f6dc96833e778faa8dbcc19beac483734c..b761d3abd670a144a593c4b410b1e7fbdcb52f56 100644 --- a/gcc/common/config/arm/arm-common.c +++ b/gcc/common/config/arm/arm-common.c @@ -38,7 +38,7 @@ static const struct default_options arm_option_optimization_table[] = { /* Enable section anchors by default at -O1 or higher. */ { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 }, - { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 }, + { OPT_LEVELS_FAST, OPT_fsched_pressure, NULL, 1 }, { OPT_LEVELS_NONE, 0, NULL, 0 } };