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 9457A3858C5F for ; Sat, 20 May 2023 02:15:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9457A3858C5F 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 34JI6WJe003548 for ; Fri, 19 May 2023 19:15:02 -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=ACqWXJy/BQCv8kh9O5AWP3CTieV1su/wV05UqSYU9Go=; b=K6aqBFUEfup23vlCW+yvzfRkLLLjsaBew6V6Maj/dOC8aUKYD9lL+t0dunyjMwTh0xE1 KRZcdUCUnp/MvlT1qgyKWDpFzMd3k22y8jEsiliq2MpynNP+QqIFBp/Jn4k2Y2K8Z9Cj bDNOLPd+D8tkuaQFKSsoqc+65+UpEsnFzjzk90BrZK9izP8ZKdd7F5kgnQzFcYuxK6u+ oaWuUFdEVYBmi4BVd8gTL349j7Tgjy9GFAXdXW+mMXuTE779tt+0vpbKi4W44W4pS4+r m7qAr1+EYERGNPKUhIO8a9n36KT0FQmKOgog69I7FYCVWyqBHymt7pdJ68HDNKCYXpI/ CA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qpe3r9ejw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 19 May 2023 19:15:02 -0700 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.48; Fri, 19 May 2023 19:15:00 -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, 19 May 2023 19:15:00 -0700 Received: from vpnclient.wrightpinski.org.com (unknown [10.69.242.187]) by maili.marvell.com (Postfix) with ESMTP id 104C43F7071; Fri, 19 May 2023 19:14:59 -0700 (PDT) From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH 0/7] Improve do_store_flag Date: Fri, 19 May 2023 19:14:44 -0700 Message-ID: <20230520021451.1901275-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-GUID: 74mn5ceuSpQjjB1BVi2qNC9yIlcSwzNw X-Proofpoint-ORIG-GUID: 74mn5ceuSpQjjB1BVi2qNC9yIlcSwzNw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_18,2023-05-17_02,2023-02-09_01 X-Spam-Status: No, score=-8.6 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: This patch set improves do_store_flag for the single bit case. We go back to expanding the code directly rather than building some trees. Plus instead of using shift+and we use directly bit_field extraction; this improves code generation on avr. Andrew Pinski (7): Move fold_single_bit_test to expr.cc from fold-const.cc Inline and simplify fold_single_bit_test_into_sign_test into fold_single_bit_test Use get_def_for_expr in fold_single_bit_test Simplify fold_single_bit_test slightly Simplify fold_single_bit_test with respect to code Use BIT_FIELD_REF inside fold_single_bit_test Expand directly for single bit test gcc/expr.cc | 91 ++++++++++++++++++++++++++++++++----- gcc/fold-const.cc | 112 ---------------------------------------------- gcc/fold-const.h | 1 - 3 files changed, 81 insertions(+), 123 deletions(-) -- 2.17.1