From patchwork Fri Apr 28 17:02:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 8765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1076573vqo; Fri, 28 Apr 2023 10:04:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cpRWgVH70WrqnD/ORfvv5RAjyHfUQRlYqRFHj09+ZBQTq2B2LcT7msYDGcgArxPcjnQ8u X-Received: by 2002:a17:907:9281:b0:94e:c40a:cca9 with SMTP id bw1-20020a170907928100b0094ec40acca9mr6532739ejc.35.1682701464356; Fri, 28 Apr 2023 10:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682701464; cv=none; d=google.com; s=arc-20160816; b=Lw1LqKZ+jynH4aNplLe2KG/r7y0OEvBQa8NptXxchasgX2yI6RPeedp9a0Xnj0OqQu exQC+Mdpu8FDZE5FFUxrT1gmY5AlvM/rAQV2osx/EZDMIn/U1L1kYDqs4aGt/CWzMu35 h7KiRc3zGwsTE30Sq4EFIdYhTR7lca14mekB2hPMbJF0Q51Vb3RObWB1ZiZbPXFSLHQo 8u9VnlUSvjy67R9Z+mzyLE6M2d+gkpIjt9204JcvySh2obAAW5FKBDDpKiECu9VOsIUv 5P0C2ZNMPCMIeoQxrBDU1rQ1EoA/+ZI3RKrP0zL4Ml2JMWfJxgvpcNgKta9c90tuUD1j DBEA== 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=p3KnBRr6kIahWkIMhrJNXfVj/W0Sb7KR87iuKUyhNfI=; b=kmXitFOeroyyuWcxi8jKnA8kv3zbdpHDp8Dbcw4vYxXQPpjOmPkXPb52yikruroxbY UPcLDAJRaH5z4QTJxl/HF4+umg5EzCcO2bdOTrf9t0a66J4KHhQ2WnwCRgd5jJAxW2aH wDkvc1sSMRQQGILJPI0uv+VWUwkMNOa2p+OuPodm+YVId5XnL8cxWL+M2f/BPO3L7j6V +6ywL0RKMQZXTj/KOW2QTNAqdjiW2yMnZB5nnvutUuNCEErmAmucbU40zKl0MBW1glKo Reg4XwUrCynnc7RPdfkhQX+PmXz60GJoLVmZpHdk+H/969gwYwSTByBBgA8e0Jgpfxkn i35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Y9bvKQ7k; 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 y23-20020aa7c257000000b0050687c1a50asi16510515edo.621.2023.04.28.10.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 10:04:24 -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=Y9bvKQ7k; 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 4E8253858413 for ; Fri, 28 Apr 2023 17:04:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E8253858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682701455; bh=p3KnBRr6kIahWkIMhrJNXfVj/W0Sb7KR87iuKUyhNfI=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=Y9bvKQ7kavTSTQQDpc7S5QgKchdKvTABT1t1Ke9f6C41qYMYRwEAo1EcZ13FRPN4t XfUwShNKqdkvBvdOLI3HsVsK/agpYqHiIW3Cnn8rFbAZceRTwi2edL1T9zf0rxMbxw neDr1eYL8+OK89zbql8zSraopldY52BFbSlOpbxA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id D600E385842D for ; Fri, 28 Apr 2023 17:02:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D600E385842D Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33SA59Aj003400 for ; Fri, 28 Apr 2023 10:02:23 -0700 Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q85x6309v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 28 Apr 2023 10:02:23 -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; Fri, 28 Apr 2023 10:02:21 -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; Fri, 28 Apr 2023 10:02:21 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id 8EA085B692C; Fri, 28 Apr 2023 10:02:21 -0700 (PDT) To: CC: Andrew Pinski Subject: [PATCH 0/2] Porting of builtin_zero_pattern to match Date: Fri, 28 Apr 2023 10:02:11 -0700 Message-ID: <20230428170213.677572-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Proofpoint-GUID: lU-pDxJKkwKRtWwtSZ-4aUwG0Opok-7i X-Proofpoint-ORIG-GUID: lU-pDxJKkwKRtWwtSZ-4aUwG0Opok-7i 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-28_04,2023-04-27_01,2023-02-09_01 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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?1764440370778375845?= X-GMAIL-MSGID: =?utf-8?q?1764440370778375845?= These two patches implement the base support of builtin_zero_pattern into match.pd. To implement the other part requires match-and-simplify inside phiopt to support moving 2 statements from the middle-bb. The match.pd part is already incldued. I will try to get to it next week. Also __builtin_clrsb has not been moved yet either and I will get to that next week as well. Andrew Pinski (2): PHIOPT: Allow moving of some builtin calls MATCH: add some of what phiopt's builtin_zero_pattern did gcc/match.pd | 41 +++++++++++++++++++++++++++++++++++++++-- gcc/tree-ssa-phiopt.cc | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 70 insertions(+), 6 deletions(-)