From patchwork Thu Nov 2 18:41:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 833478 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-465777-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="WlWUDhWG"; 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 3ySYps4C12z9s7f for ; Fri, 3 Nov 2017 05:42:11 +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=AyV ARP3siKcp3ZrWK7uQzt0hf6vbmaFvnIl2QZ81OLGH1pfrOv8Mak6FBSzN7OkR+rp ukuMruwgjAfddYsLBvDaOOxXWuwZOrMltIlALjns9o0BlZjnjjLf67GhquUzBqNy FjjuXyMau3eAwCBXk1u6YxOW7GyPhwXtdd8nnlxI= 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=xmmNMaUoo 8EO2A1mfqaayU+JKqU=; b=WlWUDhWGEH+FA/9RAX6iVea9hID+AAJoa2DptqbVQ kN4awId9F5faC80SraCxibLuvpJUbXyCgkz2aYp3LRUW+DvEn/MFaC35PK+GMhFA GilGhYAKhym0MHZAnOOX8E+cdirqad8uZN2sYz3+Z3QYtnxMuPe+6eNCjpEi4WxE vQ= Received: (qmail 106183 invoked by alias); 2 Nov 2017 18:42:03 -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 106167 invoked by uid 89); 2 Nov 2017 18:42:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 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=gains X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr20085.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.107.2.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Nov 2017 18:42:01 +0000 Received: from DB6PR0801MB2053.eurprd08.prod.outlook.com (10.168.86.22) by DB6PR0801MB2053.eurprd08.prod.outlook.com (10.168.86.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Thu, 2 Nov 2017 18:41:58 +0000 Received: from DB6PR0801MB2053.eurprd08.prod.outlook.com ([fe80::d9d5:2017:ca12:1d9d]) by DB6PR0801MB2053.eurprd08.prod.outlook.com ([fe80::d9d5:2017:ca12:1d9d%18]) with mapi id 15.20.0156.009; Thu, 2 Nov 2017 18:41:58 +0000 From: Wilco Dijkstra To: GCC Patches CC: nd , "jim.wilson@linaro.org" , "Andrew.pinski@cavium.com" Subject: [PATCH][AArch64] Set default sched pressure algorithm Date: Thu, 2 Nov 2017 18:41:58 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco.Dijkstra@arm.com; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB6PR0801MB2053; 6:tNk7GpCK/YU0QHisY6RKoJoZgR7AfflKk2G/m/qoPkaYBsUrNgaFfBLK/E33B3PORMs/edvD4gseeBITyxa64qb6HHrFlXWbJ2Ua2WINwODXnxzx/3G8174mNBm6mn3LHExcZeGj9bhu/8BBrEnVFeHgUvGzJSyfHcPPRsSFwRuAeQSvxaxx0PdOLQ70ZCrqDk9jWnHPrQajyVNGIzVtNRREwIwqGmwUtH/60N11h90ZcRQuVZdj/8N3KT1R9JfR2NNBEApSd+SZv6+6UArxVmQM//wfLjHoRS0DswagQyYvtt7aM4JSRjLsxLfkaVTNzoMntg2nmNdgM+BA3BaaPA==; 5:fEn/zM6pe1UIa6I8QFgSYmMc6zrYUJLMpKe0ADWbu0b+SODlTUG3kml7Bhon2IvHPor/nJ5s9/lwqmkDVB7pxsy1VKqqfY6gj/Pvp5gTbBPzdZJahvbUG58suelLH6DbtDUZhAadzgD5/jQFQ6hvvg==; 24:PFz7Y35y2j9hOkXmxavhaQdBRpQCZbEfcxLaC9cquX4Da3rvRb/XPhS5yEXh0zzaAWW5rV30w3bqijcSwbLpF9uibOTiY8uHz8u0SLQJSP8=; 7:m3K2KWPPi23f4wAd9tVblAyNCzH7TB8L2F0YDDvp63sCqOLZ+kNJcu+c/okV0Lfekdid9rAvflxuCErmjzvRA42ME9mrTqPm3WoHywr4lTRrXlMpuDiz1Dq7kc0xKq89aBKc+0Bn6x+hs7FSl7zsMrqvXg2Cl6Zk0u3Hwm66DumPIPGYJj5Hwd8o/xDFnjIOyVB1RBIL78PcOWwm+cMuIRx1N3zyVWPrstfVeY0eApI= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 72d5098d-487a-4933-69f1-08d5222165fb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199); SRVR:DB6PR0801MB2053; x-ms-traffictypediagnostic: DB6PR0801MB2053: nodisclaimer: True x-exchange-antispam-report-test: UriScan:(180628864354917); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(3231020)(6055026)(6041248)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB6PR0801MB2053; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB6PR0801MB2053; x-forefront-prvs: 047999FF16 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(39860400002)(199003)(377424004)(189002)(53936002)(5660300001)(14454004)(7696004)(8936002)(6436002)(54356999)(9686003)(86362001)(575784001)(6506006)(55016002)(81166006)(81156014)(105586002)(8676002)(106356001)(305945005)(66066001)(101416001)(50986999)(33656002)(3280700002)(3660700001)(74316002)(102836003)(6116002)(3846002)(6916009)(2906002)(72206003)(478600001)(189998001)(25786009)(5250100002)(54906003)(2900100001)(316002)(4326008)(97736004)(99286004)(68736007)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0801MB2053; H:DB6PR0801MB2053.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72d5098d-487a-4933-69f1-08d5222165fb X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2017 18:41:58.1940 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2053 The Arm backend sets the default sched-pressure algorithm to SCHED_PRESSURE_MODEL. Benchmarking on AArch64 shows this speeds up floating point performance on SPEC - eg. CactusBSSN improves by ~16%. The gains are mostly due to less spilling, so enable this on AArch64 by default. OK for commit? 2017-11-02 Wilco Dijkstra * config/aarch64/aarch64.c (aarch64_override_options_internal): Set PARAM_SCHED_PRESSURE_ALGORITHM to SCHED_PRESSURE_MODEL. Reviewed-By: James Greenhalgh diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 34456e96497ac7b6d2f9931187ff05619e1934a4..750b0bc29c0963742d5d7bb4ae4619d93bec3e4a 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -9276,6 +9276,11 @@ aarch64_override_options_internal (struct gcc_options *opts) opts->x_param_values, global_options_set.x_param_values); + /* Use the alternative scheduling-pressure algorithm by default. */ + maybe_set_param_value (PARAM_SCHED_PRESSURE_ALGORITHM, SCHED_PRESSURE_MODEL, + opts->x_param_values, + global_options_set.x_param_values); + /* Enable sw prefetching at specified optimization level for CPUS that have prefetch. Lower optimization level threshold by 1 when profiling is enabled. */