From: Jeff Law <jeffreyalaw@gmail.com>
To: Andrew Pinski <apinski@marvell.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH 2/2] MATCH: add some of what phiopt's builtin_zero_pattern did
Date: Sun, 30 Apr 2023 13:13:53 -0600 [thread overview]
Message-ID: <2a02f27e-4d6d-9245-dc04-5c9f78c4064d@gmail.com> (raw)
In-Reply-To: <20230428170213.677572-3-apinski@marvell.com>
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
prev parent reply other threads:[~2023-04-30 19:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-28 17:02 [PATCH 0/2] Porting of builtin_zero_pattern to match Andrew Pinski
2023-04-28 17:02 ` [PATCH 1/2] PHIOPT: Allow moving of some builtin calls Andrew Pinski
2023-04-30 19:11 ` Jeff Law
2023-04-28 17:02 ` [PATCH 2/2] MATCH: add some of what phiopt's builtin_zero_pattern did Andrew Pinski
2023-04-30 19:13 ` Jeff Law [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2a02f27e-4d6d-9245-dc04-5c9f78c4064d@gmail.com \
--to=jeffreyalaw@gmail.com \
--cc=apinski@marvell.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).