From patchwork Fri May 5 11:10:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 90409 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp315564vqo; Fri, 5 May 2023 04:11:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6HRP9+qsfi0vtvrkPBANgpKbAkwhQdQJX3Lnm5VxW4gfZyqw/6g4CLt7+24EzG8/MQH2W5 X-Received: by 2002:aa7:d48f:0:b0:509:f2c6:994a with SMTP id b15-20020aa7d48f000000b00509f2c6994amr1036029edr.27.1683285086101; Fri, 05 May 2023 04:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683285086; cv=none; d=google.com; s=arc-20160816; b=ek1jIMrzEm80cFgHYxKiT4TCokbN/mAoBJSIuMkO+HBkBOjLkdbAtq8bioX1CstCWD i3rKyWNNEKznIr1j44j3il/wYgTZWxoGE0jl+gP4eV9VYVuAwcstX+zizYTgEJ7o9dVm l/Q4MOUxtNToECsuNS/Y3C+CPBWjCb6KJKIJ0HNzdnw8E3I1zyp18X7S1mWJgwdKDqI2 W5oVgjT4tiLjwgDRYxYrX6F+XPL/IeJlSIaUDZsiRFQP6TUKI+Y3Uurso6Vh+Z/KDVdL pnHX4hGCSBLCTs1PFpj76n2nX9HiKuqwTweAZ1jdo0XO9iEV3SJ6/1LYcttfAAhXbdcF 0bvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :ironport-sdr:dmarc-filter:delivered-to; bh=ePQQz4SzC65Elps0v4d0G2mn6rsHMqx5kxcVdjjMxnc=; b=ySwOuK2CFLbLXUYePnHRLcoP/afCBgYyqS3QJcXXiTQBjzwbvkHeSmZjSluyLxOymb hqgHQLbduDi3DrfBKDWqJtZfOvg3RhskNT0X5/0KbZIPLD3PWd/o049pCSJxzMxymf8z qsOWhJB+DgBEXSdOY+3am0G/i7L+iHoOCv13oizBeT214SuqdK0cGoz65v+oclbu8GJi Alfk4WJ5Aal1xS2nsGpSgRcGjyKng30lg2GY0VOyVDoMuF2tf1V0xHRimg4qLgGZD8cU 9HqY4vzLyBLSZv+MHQMyMdwjmfzgBDkDYk8wH+FJ7LGrNVd3sbPCs5/M8PXSUGf0rs5k yuUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id by7-20020a0564021b0700b0050bdc0e98acsi4535944edb.209.2023.05.05.04.11.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 04:11:26 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 51B5A38555AA for ; Fri, 5 May 2023 11:11:01 +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 D6E143858C52 for ; Fri, 5 May 2023 11:10:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D6E143858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.99,251,1677571200"; d="diff'?scan'208";a="4939898" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 05 May 2023 03:10:34 -0800 IronPort-SDR: OEE/Vd+YXVZ2ESpsywQf6JTTYJ/O6Xj9rrbhGxc9vV1cWRygW3oQNV3UZ/+SZo/1YON9hkXNpy LHNPgNs1ucIYkkpwAq4xhFRUrKSR8wvu1KSPuIsGKlyYE2C8xhMgyCmxK8wODQKN9CBezX+ocJ oC9WY2qQSPBKDFx+IB3RD54GGEF0vjsnh1IBs4LexlrlyWwEPYYlT5oV+ToHsdDGPStEudWSWi HI94hYoIvJwI9rK6WR7/2DTl3FENRPSyTf3ywIP1Ypsxlgd1cHJ2Gc/lf9epuR0lJP15JgzJsU lhM= Message-ID: <22f08c09-4076-969f-a9a0-88761b350086@codesourcery.com> Date: Fri, 5 May 2023 13:10:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Content-Language: en-US To: Andrew Stubbs , gcc-patches From: Tobias Burnus Subject: [Patch] GCN: Silence unused-variable warning X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765052342132415223?= X-GMAIL-MSGID: =?utf-8?q?1765052342132415223?= Probably added for symmetry with out_mode/out_n but at the end not used. That function was added in commit r13-6423-gce9cd7258d0 amdgcn: Enable SIMD vectorization of math functions Tested the removal by building with that patch applied. OK for mainline? Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955 GCN: Silence unused-variable warning gcc/ChangeLog: * config/gcn/gcn.cc (gcn_vectorize_builtin_vectorized_function): Remove unused in_mode/in_n variables. diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index 5608d85a1a0..7bb71392c4c 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -5361,8 +5361,6 @@ gcn_vectorize_builtin_vectorized_function (unsigned int fn, tree type_out, machine_mode out_mode = TYPE_MODE (TREE_TYPE (type_out)); int out_n = TYPE_VECTOR_SUBPARTS (type_out); - machine_mode in_mode = TYPE_MODE (TREE_TYPE (type_in)); - int in_n = TYPE_VECTOR_SUBPARTS (type_in); combined_fn cfn = combined_fn (fn); /* Keep this consistent with the list of vectorized math routines. */