From patchwork Tue Oct 22 15:29:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 2000528 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=JWYKej8p; 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 4XXx2C6Gwvz1xw0 for ; Wed, 23 Oct 2024 02:30:10 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2B5423858D20 for ; Tue, 22 Oct 2024 15:30:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by sourceware.org (Postfix) with ESMTPS id 399F43858D28 for ; Tue, 22 Oct 2024 15:29:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 399F43858D28 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 399F43858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729610979; cv=none; b=B46AYDHtNNhs2KTZdztCMty952am1ewBaLmPsoNVqPl1T6WFYvl8jFJ5UwLGTvZeFRSkfRM4BpNvhWZkgARDrVN/DU/H15Xt7LW3YHGLEW3Vi2RvAald6jnYZ2jgFAyEEWwZCCzMv5iCpVYt3TyHKDi/OB1HcUShh9o9Yhi3GS0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729610979; c=relaxed/simple; bh=fhU92Wzy9NPeeoPEqOvsaC0TeZiobhOgkdbcquXBGB8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ubeUOOCdiNk5o28n7QbHViGWvsfgQ4WeZOpZ03SBcli5/pULMnBLuAF6JfF5UG6Fjdj6xAlde36+Kpx1uW4wttOUzf6IHnC9GPFIf+8+JrqWmeu/tK8JTueHZR51HV8IkYb+edna8P+uZHpwImu4TsiZrGGMcBGi25AZ3H5G+Cc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49M9W7XD025211 for ; Tue, 22 Oct 2024 15:29:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= KmpMfWebQ0gDFOOMdninIh91XOO35uKKfK/rflNXe9Q=; b=JWYKej8pzOZiLzUl Vt5jaz5xifBeWG7Dh9J86u8/piE/pjdvUqAOFjN0z2GFKIqN06ob4sIhvzCxjlq2 Jr0qeAmD6s6Kd52H3bNckERYGdvsAZ8srcVBUUOAEiTLqiIk+1CQnND6VIGh6I/j a2s8GXKyqIDeQfze9wiJeKtivO+BZ/NFvjFnva88SlfPHxJjm+fNlxSyGBVGmrH3 HkYznIiBnSUnVb6kpGGw2xKbN4mFeo8KycZJ4L1IqRqtnHjCozrom3iu/S9U+lvg dg/oypjIEh5s95W2AVn89WaKHRqRdQ91PYTs8Sx/6ySWeAfI9yitpkvgFuqt6pK3 EqcztQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42c6vv0ty7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 Oct 2024 15:29:35 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49MFTYDf022636 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 Oct 2024 15:29:34 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, 22 Oct 2024 08:29:34 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH 5/5] ssa-dce: use safe_emplace_push Date: Tue, 22 Oct 2024 08:29:23 -0700 Message-ID: <20241022152923.1489747-5-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241022152923.1489747-1-quic_apinski@quicinc.com> References: <20241022152923.1489747-1-quic_apinski@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: cXjAZEoZll4QBrQA8EqVBODTUYdFGhPo X-Proofpoint-GUID: cXjAZEoZll4QBrQA8EqVBODTUYdFGhPo X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 mlxlogscore=633 bulkscore=0 spamscore=0 mlxscore=0 clxscore=1011 suspectscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410220099 X-Spam-Status: No, score=-14.0 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 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 is small cleanup now vec has safe_emplace_push. We can just call safe_emplace_push instead of also causing make_pair. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * tree-ssa-dce.cc (make_forwarders_with_degenerate_phis): Use safe_emplace_push instead of `safe_push( std::make_pair (`. Signed-off-by: Andrew Pinski --- gcc/tree-ssa-dce.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-ssa-dce.cc b/gcc/tree-ssa-dce.cc index 015c17984e1..2aca62a1ae1 100644 --- a/gcc/tree-ssa-dce.cc +++ b/gcc/tree-ssa-dce.cc @@ -1834,7 +1834,7 @@ make_forwarders_with_degenerate_phis (function *fn) tree arg = gimple_phi_arg_def (phi, i); if (!CONSTANT_CLASS_P (arg) && TREE_CODE (arg) != SSA_NAME) need_resort = true; - args.safe_push (std::make_pair (e, iterative_hash_expr (arg, 0))); + args.safe_emplace_push (e, iterative_hash_expr (arg, 0)); } if (args.length () < 2) continue;