From patchwork Mon Apr 17 18:52:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 84413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2335227vqo; Mon, 17 Apr 2023 11:53:21 -0700 (PDT) X-Google-Smtp-Source: AKy350YRmSpEEepX6W6cb6iU7mP7RjYco1dKPNqsIT+BtpFFIIEDh3Jo9xxiVF8XVcEbxsMPo/9N X-Received: by 2002:a17:906:dac8:b0:94f:968e:4c00 with SMTP id xi8-20020a170906dac800b0094f968e4c00mr2523096ejb.31.1681757601322; Mon, 17 Apr 2023 11:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681757601; cv=none; d=google.com; s=arc-20160816; b=lsCjNadqEQgPLUuWreRj2kqiTrGh19yYDJVkLZCLl7nZdK4nMso0cDEOi0Mi0FVSyP gJPwHgKUVNlOwfBzv4GgNPszPspt9UI92IjDjmNTiQguCNA80Yw/Mchl3BZxipCns4FC 8IUVn4D/0RRJ9B3kLomZJAEE7X02JU/q7miqMTKdT59tu2AC5bdLqA9XNBkoZ3Ht0Vik zYQutZy0cMchLok0EZqolGp82NQBPlc69ZF/CUyNJ67c4biguj5RShj5faLraJKk2yjc Dg7a91C381sYUDF8zKE/Bm8U5xI3l40ibt2U4WiCMSzMdnKmyE9+80GlxO2etgfEfzZ0 ns1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=HbpPmc+rL23LgZr6ZwJocm6/VyG2Z1+sTwx8MdFaqbk=; b=QZW488aWmzWO6M3etj0li3Z4JkDhr/v05BIUsEkyYTFXD6E2X3Jq8udM6ZcBNzdzTs /pIEMb+vRv82j0I8I7ErUSQkVGIRiI0tPkjq9mSphT5r7JWailUtidBM/vqmYo2MSPe1 kyL8ehxHrfr6ZkVmxoEsIg9++X/tsK87cPHu0XqGkC3GKVcDILjeG88WqTjAHMjQRQte cOmIrmrfnlWHbwXvvnj1PdpVuKX77BHJflgUErNArZzLJqtP4Q2mWxOS2uh0fzb/jNXS 8gnB5uE+dibzcl3MUULzFvFo4mmJAa3MfTNGFraALGtVncbuUvlZd3Nt8qS3+/CGWsIB ozVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=vVGFqqsg; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k3-20020aa7c043000000b0050677114c7fsi9520202edo.519.2023.04.17.11.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=vVGFqqsg; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EF7A4385771A for ; Mon, 17 Apr 2023 18:53:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF7A4385771A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681757600; bh=HbpPmc+rL23LgZr6ZwJocm6/VyG2Z1+sTwx8MdFaqbk=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=vVGFqqsgk1ZGeWxhhYJdiwv58GTO3Gn77p5RzQTV2pYkyveokBCgbcExfzewisT5s uUlEuuXTJB3Zop23YxnC8sEmAX4+H6Hd03F8c1qw2sfMmFeUMmMBpPEgflZr6lILET P5xSEmi/NZAjb1IOGWGbyk3cpAAP3vXDW/7FyXRI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by sourceware.org (Postfix) with ESMTPS id 765EA3858D28 for ; Mon, 17 Apr 2023 18:52:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 765EA3858D28 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33HIUBrY010950 for ; Mon, 17 Apr 2023 11:52:37 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3pyuenk6xg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 17 Apr 2023 11:52:36 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 17 Apr 2023 11:52:34 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 17 Apr 2023 11:52:34 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id 05D7A3F708C; Mon, 17 Apr 2023 11:52:33 -0700 (PDT) To: CC: Andrew Pinski Subject: [COMMITTED] PHIOPT: Remove gate_hoist_loads prototype Date: Mon, 17 Apr 2023 11:52:23 -0700 Message-ID: <20230417185223.245929-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-GUID: iw-_NUr6tXHwKqY1zlHTF5IhhCSfB4aa X-Proofpoint-ORIG-GUID: iw-_NUr6tXHwKqY1zlHTF5IhhCSfB4aa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-17_12,2023-04-17_01,2023-02-09_01 X-Spam-Status: No, score=-14.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, 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: , X-Patchwork-Original-From: Andrew Pinski via Gcc-patches From: Andrew Pinski Reply-To: Andrew Pinski 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?1763450658938747248?= X-GMAIL-MSGID: =?utf-8?q?1763450658938747248?= gate_hoist_loads is defined before its usage so there is no reason for the declaration (prototype) to be there. Committed as obvious after a bootstrap/test on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * tree-ssa-phiopt.cc (gate_hoist_loads): Remove prototype. --- gcc/tree-ssa-phiopt.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/tree-ssa-phiopt.cc b/gcc/tree-ssa-phiopt.cc index a7ab6ce4ad9..16acd2f1894 100644 --- a/gcc/tree-ssa-phiopt.cc +++ b/gcc/tree-ssa-phiopt.cc @@ -77,7 +77,6 @@ static bool cond_if_else_store_replacement (basic_block, basic_block, basic_bloc static hash_set * get_non_trapping (); static void hoist_adjacent_loads (basic_block, basic_block, basic_block, basic_block); -static bool gate_hoist_loads (void); /* This pass tries to transform conditional stores into unconditional ones, enabling further simplifications with the simpler then and else