Message ID | 304a06e3-e037-6467-6606-d08a2d4d1ce1@e124511.cambridge.arm.com |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67ABD38708AF for <patchwork@sourceware.org>; Tue, 1 Oct 2024 13:58:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062a.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::62a]) by sourceware.org (Postfix) with ESMTPS id DCC30384477A for <gcc-patches@gcc.gnu.org>; Tue, 1 Oct 2024 13:58:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCC30384477A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DCC30384477A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::62a ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1727791099; cv=pass; b=LtQCuPlVBwYp+nxX1w1Hkvg32if0pnB/4BeLNO+E8b01eSVO5OQtxtdgXJnRH7GLRMPp/E5jYMmUMxnj51qMb2gNwqE2WQPszDSVvKi9NmF7ApmuHms8CNPCknstEFOYB46oxxCMcpkbc8xC+ZKtxmyv7irG/kl03Hid4+seQko= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1727791099; c=relaxed/simple; bh=NcEJPMUoorDrwMIel8xYUK9CQBO0zxPMuyBL9DMx3VQ=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=NMRGOUC3KbIQdtW9nZ9UdbEPWYfPxnqH2uL93a9A7ArsAwqMyncpR04ppFnxoCFWvkHAgDkxb5QfVom6ByEacIqaf0KF7H+5WkpM0aZkkCTSZUm7ETT1W5cxFobwWxGHy+d67ELD+gH1a1UJjobSBhszXQWys+q1+6KIPGgq4IE= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=hqmCrFkQkfMxgTeQnreWlNSvV1edXkP+1gmqkF6+qV5vK0T6RuyX8KLbHB8BrxoOosj+YU7n4coSQfDnnxlWQYheFzflaKqGauycme3AnRTmqoml5GQZNbmIuqM2vpo+2rYVhFM3my9R7Uy9FcsgLPHbo2J973Hs0Kul8PA/6oONZeeki8bpBR8fT/Z/dDhdK4tKkpTLVWN2iNM7i6cLI+u8dWj3/eMJ0rtFCIyO8LHrkNMtqBZFYYMZNV3oQEiYem3V/FQnGzU+IUEVvmT8GZsQwhU+0Tw3eg9f6YW3ExSFhsff1Tsb9WDkqSYozz6LbYs30sKHv0PVxG3T7NVR3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=caJTQJbBZDzLuqnB+qIJxQmOPYG9//8AeeWNMoCw+Nc=; b=J8vKjP74E+FbPiQyDAQtsGMRTWpOXH6Xw37dkUydyN6GpYJX3BXebsDsUeB7Mhs7yNzA6Fuu3YaIre5o0+BmyaAWxdnJAk9u4zu4pXO5qItdvuozdi4e24Kk7Zn6BPo1gsrhI7OSS68VpDn3zrCUeCSek44BEpJV3mdvJD2Xyofc4loeRAeSHEOi3xJOwf4RRO8sXjx21jUtMLTUSv2YDAlYl/J+Z8oVV68pjiaQam2YIysAZhkwE3MINPyFA9IvQs/BLAfk2yow6PR+4gV54sqWrl33mN+S6dPTI9vDcXnfTGTzBjFAzT7sOWR7i7w1R/6V0vzFF9Wrbia4zt/qzA== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=caJTQJbBZDzLuqnB+qIJxQmOPYG9//8AeeWNMoCw+Nc=; b=RftPmQQQqhaaH1tUdrsphN+AHLCXBGTk29Dc3oRwM3QIMnTPid0OfRx7X7LNTWn7INbaYLQjZUdyYyNUxVFGO0zhJ40XLHc2Qmac3ydNxULmHFI68MC738xaE5AeNNtxP5eLw/QWPb32SL3rHDld3wglcKPE+XSka77/EZPvg3E= Received: from AS9PR04CA0063.eurprd04.prod.outlook.com (2603:10a6:20b:48b::9) by DBBPR08MB10674.eurprd08.prod.outlook.com (2603:10a6:10:53d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.15; Tue, 1 Oct 2024 13:58:13 +0000 Received: from AM3PEPF00009B9F.eurprd04.prod.outlook.com (2603:10a6:20b:48b:cafe::d) by AS9PR04CA0063.outlook.office365.com (2603:10a6:20b:48b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27 via Frontend Transport; Tue, 1 Oct 2024 13:58:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM3PEPF00009B9F.mail.protection.outlook.com (10.167.16.24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8026.11 via Frontend Transport; Tue, 1 Oct 2024 13:58:12 +0000 Received: ("Tessian outbound 5b65fbeb7e07:v473"); Tue, 01 Oct 2024 13:58:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b4f78f1554b3ec6e X-TessianGatewayMetadata: S0iDLqkEaets2fn0iqfR2lcshOGxUOSJmb/39odQQxr2+1NZbWs8dbzQDk0yPRWu0yKBItJa8kG2pdeJBe9UvQprPkVGCey/GynjrP3HhiH+9vXz6kY3+ix8To4MXuT6nLa2OhHh5wlus9h4pynN12f/k3gXL4SyzBOMA6guO9O9jAhQ1AF9ZY2MfyMHZGdK X-CR-MTA-TID: 64aa7808 Received: from L944fbf3d1f73.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 0DEB1631-ECFD-41FA-811A-43B6B49512E1.1; Tue, 01 Oct 2024 13:58:00 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L944fbf3d1f73.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 01 Oct 2024 13:58:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mUoFAmoAdgxDmwNOY8D8PVwQuaRrY+5zVAshqZcgGSo+dTQyuKF2UlziMdBxJTQhJM+helgPJ/r5MN1fwq4O9iD9NWjh9UAL0BzE7OwCXT9n/Hik1fe96zSOl1qhi//xRmTtDZIiGsix9ePbKffhTMew7UgVJoLEzkAGXauCj72AdpNmOqpaNBLf/t+yXiRVfFWUzxEHjBOqsx3qTyCZEN8Hm+RNWaitxqZt/xx6SgXFjOZkVWGRK/smP7GxDt4HbAkX5bx4vq66IhkCG5FHtgAfKBOWYxTmlwLz3U31rbbtqVZGPZfop9TOcfHxTIF0WVwetQYVXSqcyFUFQmmR0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=caJTQJbBZDzLuqnB+qIJxQmOPYG9//8AeeWNMoCw+Nc=; b=mMNwTBA1A4Jntjv60IKsDMQWOW9QgGnBh4m8BDzChSmZv/wMrs9RiH+g2VaD5DNpuBm4j4OCiDCtihH86GlS8OWh2O8ha1v/ye6psRmrxfgVBvG6pdnzsIFZ5nd4QCBvive/78rUl6FUv13UDIqXbcGQ3qULsl4xVx/bQ38ZF711a/baIacO+3m33mOZuUMB798eyLqDtpgjh3LilM1bDdXyfNFKqZVsFRYNw297ImXI/dONofGLirRAPXTc4w6QsILO0H8FwTxJV4Sl1XGNi2JqqGP0pqB30fH1CKGWrsF9tWZs1NErEd+lL8nnlZ/TWzeu0+TXcNVkZ6QOkiE6zQ== 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=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=caJTQJbBZDzLuqnB+qIJxQmOPYG9//8AeeWNMoCw+Nc=; b=RftPmQQQqhaaH1tUdrsphN+AHLCXBGTk29Dc3oRwM3QIMnTPid0OfRx7X7LNTWn7INbaYLQjZUdyYyNUxVFGO0zhJ40XLHc2Qmac3ydNxULmHFI68MC738xaE5AeNNtxP5eLw/QWPb32SL3rHDld3wglcKPE+XSka77/EZPvg3E= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DU0PR08MB8255.eurprd08.prod.outlook.com (2603:10a6:10:411::9) by DB8PR08MB5498.eurprd08.prod.outlook.com (2603:10a6:10:11c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.14; Tue, 1 Oct 2024 13:57:58 +0000 Received: from DU0PR08MB8255.eurprd08.prod.outlook.com ([fe80::cbc8:c020:6a1b:d27a]) by DU0PR08MB8255.eurprd08.prod.outlook.com ([fe80::cbc8:c020:6a1b:d27a%5]) with mapi id 15.20.8026.014; Tue, 1 Oct 2024 13:57:58 +0000 Date: Tue, 1 Oct 2024 14:57:55 +0100 From: Andrew Carlotti <andrew.carlotti@arm.com> To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford <richard.sandiford@arm.com> Subject: [PATCH] aarch64: Fix costing of move to/from MOVEABLE_SYSREGS Message-ID: <304a06e3-e037-6467-6606-d08a2d4d1ce1@e124511.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0030.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:151::17) To DU0PR08MB8255.eurprd08.prod.outlook.com (2603:10a6:10:411::9) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DU0PR08MB8255:EE_|DB8PR08MB5498:EE_|AM3PEPF00009B9F:EE_|DBBPR08MB10674:EE_ X-MS-Office365-Filtering-Correlation-Id: 4becec4c-0b93-485c-952a-08dce2211723 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info-Original: I6om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0Q0QYpv2C2xR9sNbueupMqDm1lklInqVgDwIQYQsd57WEw18l5iljUhnq3Oa/d8Mlgy4VmTQ7gYWpPHkte9qMEDznwDpUzeh9eib19cQKvbKaV+oeePUb/pq8a2SRb/9XlNSUIKJ1ml1l5+6b0QtxCd5zkAKZNz+uYRfb3/oO8P9nyjxBIr7hejGG2v8oRsxduPoDt0VgLPUTXSMcfEdZhgNdXPNHcD0Tn2KaBRaio3GO56t5AvTGm4SdLZJvtJJDnCLPAk0xEGOAGWfmQpcQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB8255.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5498 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:411::9]; domain=DU0PR08MB8255.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF00009B9F.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: f12173d8-2d9f-4056-28c8-08dce2210e64 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35042699022|36860700013|1800799024|376014; X-Microsoft-Antispam-Message-Info: L1XUhI9CCVJYrkiGj7epfkdouLWTMV469paQb4SFt92LsZpmSsVgGO8zpMXz07cvPAZNqX4RBgsZYKXL4jYa9GMnW8HAcXiPw9eNCNS9/P3cmPjBsKDRerUWM8XhozRp9teN+5M4GxXFbI4lVlk8PGxMk8h8kMwRaeAHshB6nUdMsX0PWPrtfpBtnGcnkE0vHqIvewsisGQYjsXl+mgQi77D3fIJC2DXMoHEeF15jY877NQOMN5hwJaxSpvsywiDTLC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jUN++O3dcQVwivimuvYEfaJbNcE+BBjtb6CHJGowtH4Fx8EZmzM51JWlPHTxZzITD7dULmlWdJ/gDUZJFMOw2uy X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230040)(82310400026)(35042699022)(36860700013)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 13:58:12.9305 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4becec4c-0b93-485c-952a-08dce2211723 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF00009B9F.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB10674 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
aarch64: Fix costing of move to/from MOVEABLE_SYSREGS
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_gcc_check--master-arm | success | Test passed |
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 | success | Test passed |
Commit Message
Andrew Carlotti
Oct. 1, 2024, 1:57 p.m. UTC
This is necessary to prevent reload assuming that a direct FP->FPMR move is valid. Bootstrapped and regression tested; ok for master? gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_register_move_cost): Increase costs involving MOVEABLE_SYSREGS.
Comments
Andrew Carlotti <andrew.carlotti@arm.com> writes: > This is necessary to prevent reload assuming that a direct FP->FPMR move > is valid. > > Bootstrapped and regression tested; ok for master? > > gcc/ChangeLog: > > * config/aarch64/aarch64.cc (aarch64_register_move_cost): > Increase costs involving MOVEABLE_SYSREGS. > > > diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc > index c03ca2c24ed702803989024193dae07155445978..73a555d61cfb4c150cb5a0e7b9d09f3075f0c0b4 100644 > --- a/gcc/config/aarch64/aarch64.cc > +++ b/gcc/config/aarch64/aarch64.cc > @@ -15500,6 +15500,12 @@ aarch64_register_move_cost (machine_mode mode, > reg_class_contents[FFR_REGS])) > return 80; > > + /* Moves to/from sysregs are expensive, and must go via GPR. */ > + if (from == MOVEABLE_SYSREGS) > + return 80 + aarch64_register_move_cost (mode, GENERAL_REGS, to); > + if (to == MOVEABLE_SYSREGS) > + return 80 + aarch64_register_move_cost (mode, from, GENERAL_REGS); > + LGTM. There's precedent for hard-coding a very large value (for FFR) and I agree that this case is similarly problematic. And it doesn't seem like a useful tuning parameter. OK if there are no objections before Thursday local time. Thanks, Richard > /* Moving between GPR and stack cost is the same as GP2GP. */ > if ((from == GENERAL_REGS && to == STACK_REG) > || (to == GENERAL_REGS && from == STACK_REG))
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index c03ca2c24ed702803989024193dae07155445978..73a555d61cfb4c150cb5a0e7b9d09f3075f0c0b4 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -15500,6 +15500,12 @@ aarch64_register_move_cost (machine_mode mode, reg_class_contents[FFR_REGS])) return 80; + /* Moves to/from sysregs are expensive, and must go via GPR. */ + if (from == MOVEABLE_SYSREGS) + return 80 + aarch64_register_move_cost (mode, GENERAL_REGS, to); + if (to == MOVEABLE_SYSREGS) + return 80 + aarch64_register_move_cost (mode, from, GENERAL_REGS); + /* Moving between GPR and stack cost is the same as GP2GP. */ if ((from == GENERAL_REGS && to == STACK_REG) || (to == GENERAL_REGS && from == STACK_REG))