From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id 6B2343858291 for ; Fri, 17 Feb 2023 21:45:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6B2343858291 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 (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31HJQ2Ut010621 for ; Fri, 17 Feb 2023 13:45:48 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=NrraY+/do+Ru/qZW25fXk9Bffqn8PMFyOioF0BwwI8U=; b=EA9QA3Meqk3WvC8Ji2+HXZ/8rZI//cl4gTsrd+kNKYL+7GwQ3fqqYKz8DTrRYsBonSmQ 0u7ByHq9Gs+HsgeZIH2QRBh+xR1bgpHIO1n9zshps1IJsuhuqFE1J1JO+wxNpwJX9LWL n+kCLJHYi74nUOuT/dcp3yARBn8Gva083izYWYIc43aXesRopdgvk//xY26HNOvnyRpC VHLTHKI8UOn3DWYJ6Xmv1VrgSlrq4wK+CcZDQj5JOQ+9MZPGqqc9bkyZEewuYBFmS2lK T490rcJao8v3eJwR4xarw91iDPmgID3ViCVvfj97AsB5Y/5FhhUDBLDIrArhSo588DlK qw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3nsg88drs8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 17 Feb 2023 13:45:48 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Feb 2023 13:45:47 -0800 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.42 via Frontend Transport; Fri, 17 Feb 2023 13:45:47 -0800 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.67]) by maili.marvell.com (Postfix) with ESMTP id B74825B6929; Fri, 17 Feb 2023 13:45:46 -0800 (PST) From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH 2/2] Remove #if GIMPLE around 1 - a pattern Date: Fri, 17 Feb 2023 13:45:38 -0800 Message-ID: <20230217214538.2177094-2-apinski@marvell.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230217214538.2177094-1-apinski@marvell.com> References: <20230217214538.2177094-1-apinski@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 3fUvnlmqf4EPEUEHHF0-fExGuturw7XW X-Proofpoint-GUID: 3fUvnlmqf4EPEUEHHF0-fExGuturw7XW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-17_15,2023-02-17_01,2023-02-09_01 X-Spam-Status: No, score=-14.5 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 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: This removes the "#if GIMPLE" around the "1 - a" pattern as ssa_name_has_boolean_range (get_range_query) works when cfun is a nullptr. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * match.pd: Remove #if GIMPLE around the "1 - a" pattern --- gcc/match.pd | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/match.pd b/gcc/match.pd index e7b700349a6..e352bd422f5 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -1732,7 +1732,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (!FIXED_POINT_TYPE_P (type)) (plus @0 (negate @1)))) -#if GIMPLE /* 1 - a is a ^ 1 if a had a bool range. */ /* This is only enabled for gimple as sometimes cfun is not set for the function which contains @@ -1743,7 +1742,6 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (INTEGRAL_TYPE_P (type) && ssa_name_has_boolean_range (@1)) (bit_xor @1 @0))) -#endif /* Other simplifications of negation (c.f. fold_negate_expr_1). */ (simplify -- 2.17.1