From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by sourceware.org (Postfix) with ESMTPS id 741913858D32 for ; Mon, 24 Apr 2023 21:30:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 741913858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=marvell.com 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 33OKnSI0010728 for ; Mon, 24 Apr 2023 14:30:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=eFTVE7LE0kQsYjMHAldVlMiuP2WeDvA/4JloH2iQNE4=; b=KG0PTqz5kgtgrxs65FeaR4NACfFfmT+zUCH8/1FM2yYwa/RuKTutD3GLOmiQm5+hBCq9 fLUNcNVRdx/ajZwz0VxrJLA5/bv1EPuFYYuGxNzR8njrZpMysnJeVEyvV2E2iavFyPOn tEVlGEXTESwMc0xUaluaTMXsuKq4IophJ6oAeSJslAe1ochn/DjRDj5AGC64+bz/kbse fZ8AyKV8kNPMEV3nonD6Q7GdrZWLqKBpzHlO5P6rK32zGI286242TgHHtfLZ2b+TTRxg HZBZaYxtN/kzK0qSrD1tpmE0usQaodhYXS/ibeOZIMaiDUhpONS99IeRVBa64BQAMm3u mw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q4f3p7pyj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 24 Apr 2023 14:30:22 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 24 Apr 2023 14:30:20 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 24 Apr 2023 14:30:20 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id CE1293F70CE; Mon, 24 Apr 2023 14:30:18 -0700 (PDT) From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH 0/7] Some more phiopt cleanups and double minmax to match Date: Mon, 24 Apr 2023 14:30:04 -0700 Message-ID: <20230424213011.528181-1-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 9ATdUnfrLDgcWpLH8ucIc34zwB70hpJv X-Proofpoint-GUID: 9ATdUnfrLDgcWpLH8ucIc34zwB70hpJv 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-24_11,2023-04-21_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 List-Id: The first 3 patches of this patch series is about some more phiopt cleanups dealing with the worker functions being folded into now the ::execute functions. The last 4 are allowing diamond based min/max optimization to be done in match instead of manually in phiopt. Note I have not removed minmax_replacement yet as there is a few missing patterns from match still. Those will be implemented in the next couple of weeks. Andrew Pinski (7): PHIOPT: Split out store elimination from phiopt PHIOPT: Rename tree_ssa_phiopt_worker to pass_phiopt::execute PHIOPT: Move store_elim_worker into pass_cselim::execute MIN/MAX should be treated similar as comparisons for trapping PHIOPT: Allow MIN/MAX to have up to 2 MIN/MAX expressions for early phiopt MATCH: Factor out code that for min max detection with constants MATCH: Add patterns from phiopt's minmax_replacement gcc/fold-const.cc | 43 ++ gcc/fold-const.h | 3 + gcc/match.pd | 45 +- gcc/rtlanal.cc | 3 + gcc/testsuite/gcc.dg/tree-ssa/minmax-16.c | 10 +- gcc/testsuite/gcc.dg/tree-ssa/split-path-1.c | 3 +- gcc/tree-eh.cc | 3 + gcc/tree-ssa-phiopt.cc | 579 ++++++++++--------- 8 files changed, 394 insertions(+), 295 deletions(-) -- 2.39.1