From patchwork Wed Jul 10 00:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1958613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=DXePFhBM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WJdSY6WJLz1xqj for ; Wed, 10 Jul 2024 10:06:35 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6902638708B0 for ; Wed, 10 Jul 2024 00:06:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id 0E737385DDD5 for ; Wed, 10 Jul 2024 00:06:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E737385DDD5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0E737385DDD5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720569971; cv=none; b=rMkJRqRIg3MusJDanaY+sgm/DMsTxTv8jknnEiUIrIZN9kZ3oslIIkjl98aE2eAXJhA34JVybUR3Py3zKc37AhYYiRqH70+ibmlNwB5BlZRBOKgcFGlvVQRSAgz0fNWxtOn5mqwGI/y9SQiaIskp43cBGF+BfsuNFxqFfZO7ViI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720569971; c=relaxed/simple; bh=t6K6WQetUqfdrhu0ogfss/DJvTCK4MUAYjT1SwXBjDM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CZqeY+UiZjIevJDBWn9dD+8Vo8/aCRNsw9zLi+AgdZZ6xsxIoSj3g5icmOvBy00lTu7EKCLed0SZDd+Lo4Fn1pzy8mlMzmrymARV50SetMWWy5uqxMD99jWQTxW3xtw164XyCvx7qcxHcSR7QaOSdgkyR+mENLIjnINggtSpRFg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 469J6Ftb019368 for ; Wed, 10 Jul 2024 00:06:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=rOdLfzriwTdIPqBeS/9ItG 9jtsVu+sIk1DnJ3qxUXgQ=; b=DXePFhBMU89jqbDcLYr8kEjpE0Po2jnc6fW2S4 yACYcT7ZK+CcL4KVQSeTeUgDB3ACy/FDmVvoB1n68TwEpp58b+eYwY6H1/DJtnZC Ld591E6gT9aXUG1R2LgPawPx90NNphMgAXJmWgEl+CI/TwV+ytKjKgC34gm13oWz Dg36z+bsu4bi7obT4O7DXLf63KtFrPwWg6cpoXeOmfmzCoWcUA5yeYkKxu1g4lzv 0KGAbG6w2aCmseql68W7Jg8faKwJcAy01sAMa7zcRIhUm0N0IH09QNeJmDFoOd4v 0hqeOTnSTurzMWHKumyL6tV8Pd8Pgj+/ZkUvqhj3q0aZlpew== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 406wg401ne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Jul 2024 00:06:08 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46A068SW006343 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 10 Jul 2024 00:06:08 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 9 Jul 2024 17:06:07 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH] Remove expanding complex EQ/NE inside a GIMPLE_RETURN [PR115721] Date: Tue, 9 Jul 2024 17:05:56 -0700 Message-ID: <20240710000556.3226215-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 835-nkgesKe8AqR5hVOYxQgjYwpuYBWZ X-Proofpoint-GUID: 835-nkgesKe8AqR5hVOYxQgjYwpuYBWZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-09_11,2024-07-09_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=657 clxscore=1015 impostorscore=0 malwarescore=0 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407090166 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org This code has been dead at least since the move over to tuples in 0-88576-g726a989a8b74bf, when gimple returns could only have a simple expression in it. So let's remove it. Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR tree-optimization/115721 * tree-complex.cc (expand_complex_comparison): Remove support for GIMPLE_RETURN. Signed-off-by: Andrew Pinski --- gcc/tree-complex.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gcc/tree-complex.cc b/gcc/tree-complex.cc index d2d9d76827d..dfb45b9d91c 100644 --- a/gcc/tree-complex.cc +++ b/gcc/tree-complex.cc @@ -1622,14 +1622,6 @@ expand_complex_comparison (gimple_stmt_iterator *gsi, tree ar, tree ai, switch (gimple_code (stmt)) { - case GIMPLE_RETURN: - { - greturn *return_stmt = as_a (stmt); - type = TREE_TYPE (gimple_return_retval (return_stmt)); - gimple_return_set_retval (return_stmt, fold_convert (type, cc)); - } - break; - case GIMPLE_ASSIGN: type = TREE_TYPE (gimple_assign_lhs (stmt)); gimple_assign_set_rhs_from_tree (gsi, fold_convert (type, cc));