From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id 256693858C66 for ; Sun, 30 Apr 2023 19:13:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 256693858C66 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-24df161f84bso443077a91.3 for ; Sun, 30 Apr 2023 12:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682882035; x=1685474035; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yZKAnuzdIMtnGVie2CylNFbI6zuQAjMbdjSFNnABmvg=; b=AdqVGa3TZNwte1k7g0Nbp19teQQJrj0RR7XogO8ipQ3NwjJAgGKEy/UAhfP+xMvKmU sLEDakeahYuTC1UFUdhwQIhKaH+JYx1ZNmY/B6Px2MNIOMUDdYEvzxa9JWJI2ug4UvIP 0IuOGCsk/L5wGUiHweAwGXGaypUjE5JtUXBshb9aTZCKoFJde4q0o9UUJgghqETvZSZT A2X/JKHbWizkk7pZRPmpBd1wDmf/cMAcSWZnOsKLaQAAyaoVkJBthRpbbUw7uItA1AJL cD4xvyEyUNDdX5eQbxtO2gNUwC9LxQVr5fQaXfDNmk8+W2t+PPPwPNJQwJ/D9jZcmRPk ervg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682882035; x=1685474035; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yZKAnuzdIMtnGVie2CylNFbI6zuQAjMbdjSFNnABmvg=; b=GhQ0SQtBPJ/LKoI0nOageUPQ1moDcRax7N5JpZrX3emFDdZgIovPbqV5/JuD9kxaAE Doi+lFudUqoSRubY2ixpPoIOw/OFNNiO4kciWzUeDMU32KyQjd4R7cJUNevBk1Xc5gfU trMZJ0/lQKZ8ry1Ej8fzgzIM8eeWpu8zelChyzWDxdMB8FXzwIoza1UOePjOMxMYsf+E YdHlyYHdGmj3kJ9ohBTRFbrzPfgR8q8pxca7PJLvNuHO4gIJqO7D63Pgmx0adU7d8xgS 08JFkyXJbhMX7xR5gWU27jEeK4P5jUaaOmEs6DxBPyVr1PMO8u28C8jMKZKkrDquRxIv BT6w== X-Gm-Message-State: AC+VfDx6uYLQGfw8t+Nzj2JIdcoAcdCdiIFw1C8BpsL+hbFLS/CayiP4 8pKpS9r7xPXs3xVWWA0l/wY= X-Google-Smtp-Source: ACHHUZ7n/hV83JNRWc4kjAA0ZJ7y3KQk5deS0a5jLVguoCypUNKAIP430DiaNq+cJIP058KZcJ79lA== X-Received: by 2002:a17:902:ecc5:b0:1a1:b440:3773 with SMTP id a5-20020a170902ecc500b001a1b4403773mr15285012plh.27.1682882035196; Sun, 30 Apr 2023 12:13:55 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id c24-20020a170902849800b001a50ae08284sm16471830plo.301.2023.04.30.12.13.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 30 Apr 2023 12:13:54 -0700 (PDT) Message-ID: <2a02f27e-4d6d-9245-dc04-5c9f78c4064d@gmail.com> Date: Sun, 30 Apr 2023 13:13:53 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 2/2] MATCH: add some of what phiopt's builtin_zero_pattern did Content-Language: en-US To: Andrew Pinski , gcc-patches@gcc.gnu.org References: <20230428170213.677572-1-apinski@marvell.com> <20230428170213.677572-3-apinski@marvell.com> From: Jeff Law In-Reply-To: <20230428170213.677572-3-apinski@marvell.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: On 4/28/23 11:02, Andrew Pinski via Gcc-patches wrote: > This adds the patterns for > POPCOUNT BSWAP FFS PARITY CLZ and CTZ. > For "a != 0 ? FUNC(a) : CST". > CLRSB, CLRSBL, and CLRSBLL will be moved next. > > Note this is not enough to remove > cond_removal_in_builtin_zero_pattern as we need to handle > the case where there is an NOP_CONVERT inside the conditional > to move out of the condition inside match_simplify_replacement. > > OK? Bootstrapped and tested on x86_64-linux-gnu. > > gcc/ChangeLog: > > * match.pd: Add patterns for "a != 0 ? FUNC(a) : CST" > for FUNC of POPCOUNT BSWAP FFS PARITY CLZ and CTZ. OK jeff