From patchwork Thu Jul 30 22:10:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1339143 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 (server2.sourceware.org [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 4BHl4g32Vnz9sT6 for ; Fri, 31 Jul 2020 08:11:47 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 68DA13857031; Thu, 30 Jul 2020 22:11:38 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id D11F33858D35 for ; Thu, 30 Jul 2020 22:11:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D11F33858D35 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: HpJ/+6/Y7D8PFsX24vNQiP1PGX+4guGgCIEm9V97ZkwcmblVRSKRymVRkNOqWr4dZ8dUUnXB1V yR+7vlB2KKYAqIiBlrACkw45IBnPG57zgKZnDPcTXF9yXBrxhgfSc5fGt69c1CB7jA3Z42gdj7 B3OYDbuh1RA+vqNy3BrxybW88yt3MXZpGLDpP89+nwoMuhZixY6vMSZrlPrk4RcpqbENAWX5bG xotHHhIWLQYySWRZHsf7PeKsngHJqdNHBrx+UnMJUesVBlvUPnCMBJHogX1GyMtG1SGUdGOU/O vb0= X-IronPort-AV: E=Sophos;i="5.75,415,1589270400"; d="scan'208";a="51478026" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 30 Jul 2020 14:11:17 -0800 IronPort-SDR: lXFlhIihc4OZdZf6wmvWwBcDrrJ0uVJw4lGOadAMG4YQh39ZdrlKUQffWErt7VdT+Sppnb+YjK +4bUjZQz6r/kfOfCzHugK4eoq/HoXORPEazHg875r+yGULeR1FRXtmOv+Vq/umbBKHsomeKHkW l4OvMtdm16mEOG8WoBnwFD0LLSqS8SAg8/XG4rpxYsDgOGWOjYJtleab6S+16FTBGCY3U4V6Qb ZIva1jUeS6ikaYG1QRkcUJcm+tA3blny5vokn12IHOXItVs9ad13VNnUxKNLQC8ZbqMYWhlEyE XcI= From: Julian Brown To: Subject: [PATCH] [og10] openacc: Delete useless temp in gcn-tree.c Date: Thu, 30 Jul 2020 15:10:53 -0700 Message-ID: <20200730221054.85545-2-julian@codesourcery.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200730221054.85545-1-julian@codesourcery.com> References: <20200730221054.85545-1-julian@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) 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, 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 is an obvious cleanup to get rid of an unnecessary temporary variable. I will apply shortly to the og10 branch. Thanks, Julian 2020-07-30 Julian Brown gcc/ * config/gcn/gcn-tree.c (gcn_goacc_reduction_teardown): Remove useless temporary variable "decl". --- gcc/ChangeLog.omp | 5 +++++ gcc/config/gcn/gcn-tree.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp index 9e6e95f667b7..12b8c044a1b1 100644 --- a/gcc/ChangeLog.omp +++ b/gcc/ChangeLog.omp @@ -1,3 +1,8 @@ +2020-07-30 Julian Brown + + * config/gcn/gcn-tree.c (gcn_goacc_reduction_teardown): Remove useless + temporary variable "decl". + 2020-07-17 Andrew Stubbs Backport from mainline (42b47dae498): diff --git a/gcc/config/gcn/gcn-tree.c b/gcc/config/gcn/gcn-tree.c index 1dc9b21823b0..bfde71555d8a 100644 --- a/gcc/config/gcn/gcn-tree.c +++ b/gcc/config/gcn/gcn-tree.c @@ -603,9 +603,7 @@ gcn_goacc_reduction_teardown (gcall *call) /* Read the worker reduction buffer. */ tree offset = gimple_call_arg (call, 5); - tree decl - = gcn_goacc_get_worker_red_decl (var_type, TREE_INT_CST_LOW (offset)); - var = decl; + var = gcn_goacc_get_worker_red_decl (var_type, TREE_INT_CST_LOW (offset)); } if (level != GOMP_DIM_GANG)