public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Pinski <apinski@marvell.com>
To: <gcc-patches@gcc.gnu.org>
Cc: Andrew Pinski <apinski@marvell.com>
Subject: [PATCH 0/2] Porting of builtin_zero_pattern to match
Date: Fri, 28 Apr 2023 10:02:11 -0700	[thread overview]
Message-ID: <20230428170213.677572-1-apinski@marvell.com> (raw)

These two patches implement the base support of builtin_zero_pattern
into match.pd. To implement the other part requires match-and-simplify
inside phiopt to support moving 2 statements from the middle-bb. The
match.pd part is already incldued. I will try to get to it next week. 

Also __builtin_clrsb has not been moved yet either and I will get to
that next week as well.

Andrew Pinski (2):
  PHIOPT: Allow moving of some builtin calls
  MATCH: add some of what phiopt's builtin_zero_pattern did

 gcc/match.pd           | 41 +++++++++++++++++++++++++++++++++++++++--
 gcc/tree-ssa-phiopt.cc | 35 +++++++++++++++++++++++++++++++----
 2 files changed, 70 insertions(+), 6 deletions(-)

-- 
2.39.1


             reply	other threads:[~2023-04-28 17:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-28 17:02 Andrew Pinski [this message]
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

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=20230428170213.677572-1-apinski@marvell.com \
    --to=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).