From patchwork Wed Jan 13 00:58:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1425573 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=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DFpxS5TLvz9sj5 for ; Wed, 13 Jan 2021 11:59:24 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C1583938C26; Wed, 13 Jan 2021 00:59:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 478E13938C26 for ; Wed, 13 Jan 2021 00:59:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 478E13938C26 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Julian_Brown@mentor.com IronPort-SDR: j3G4G4cAQFRy6yfz8wJdniNJuTTYctQZzyTUZLcR6RsPSMeqqA+piuX7pLpsx4qsjT5iYfZZfc fiSHx8+HTbR4J2uNJdYDlXYiy+J+m3fhDUPQjmEKhVOG3baqhhzYOkL89Acem2LGOEfeiBe/7q C6zFG/+B0YcBs7OxoiZKiG8m0WHAsch5H9tE/KORNngaQquooQ4/ZDEyDQHuvy4tOfjskOpHGL y0+VCWYuIthcYUsBrkWsjANwqTHzF/PjxcQLvRFLKM3xgC2Nwa4US/0PHwrlPbKlwdlDL44AHN 8lM= X-IronPort-AV: E=Sophos;i="5.79,343,1602576000"; d="scan'208";a="57145451" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 12 Jan 2021 16:59:13 -0800 IronPort-SDR: /GsLyvyhzo7awt+dCtXnsW4mSUVgfGcDRuETmwKlDbB1bdq8Yc0YIW4ztwpw4mqF9w7gGmWWEY bMydHOx/Y9kmkhddWqfnbNemYQM+opGkWcxDQwY8gZhQY5B2pxM+X4djwSa5BS0q+hJ6mK6V/c yVfEv2hgrHfSrHuACog3C9zPYAbKx1k5oQ/+R3DgOoC9xu+j/WMc0SGbwOKx7q50XOKq3TO3zX HQ3aQ+CxDo6DSYCyul/oxPqS3g31VtwmFHWApTECfEwzph6qeBwmZnDzm8TLqaRM9wfgMy149G AfM= From: Julian Brown To: Subject: [PATCH] amdgcn: Remove dead code for fixed v0 register Date: Tue, 12 Jan 2021 16:58:52 -0800 Message-ID: <20210113005852.114459-4-julian@codesourcery.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Stubbs Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This patch removes code to fix the v0 register in gcn_conditional_register_usage that was missed out of the previous patch removing the need for that: https://gcc.gnu.org/pipermail/gcc-patches/2019-November/534284.html Tested with standalone AMD GCN target. I will commit shortly. Julian 2021-01-13 Julian Brown gcc/ * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code to fix v0 register. --- gcc/config/gcn/gcn.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c index 630ce4eebc7..b08f4b32c9c 100644 --- a/gcc/config/gcn/gcn.c +++ b/gcc/config/gcn/gcn.c @@ -2137,10 +2137,6 @@ gcn_conditional_register_usage (void) fixed_regs[cfun->machine->args.reg[WORK_ITEM_ID_Y_ARG]] = 1; if (cfun->machine->args.reg[WORK_ITEM_ID_Z_ARG] >= 0) fixed_regs[cfun->machine->args.reg[WORK_ITEM_ID_Z_ARG]] = 1; - - if (TARGET_GCN5_PLUS) - /* v0 is always zero, for global nul-offsets. */ - fixed_regs[VGPR_REGNO (0)] = 1; } /* Determine if a load or store is valid, according to the register classes