public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: apinski@marvell.com, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it
Date: Sat, 18 Sep 2021 23:55:06 -0600	[thread overview]
Message-ID: <53c80a07-3074-d249-634d-d1d6196c70e9@gmail.com> (raw)
In-Reply-To: <1628900361-27676-1-git-send-email-apinski@marvell.com>



On 8/13/2021 6:19 PM, apinski--- via Gcc-patches wrote:
> From: Andrew Pinski <apinski@marvell.com>
>
> While working on some more boolean optimizations, I noticed
> that there are places which does SSA_NAME@0 and then look
> at then either use get_nonzero_bits or ssa_name_has_boolean_range
> to see if the ssa name had a boolean range. This cleans this
> up slightly by have a simple match pattern call gimple_truth_valued_p
> which matches on SSA_NAME and checks ssa_name_has_boolean_range.
> This is the first of the few cleanups I am going to do for
> match and simplify and boolean related changes.
>
> gcc/ChangeLog:
>
> 	* match.pd: New match, gimple_truth_valued_p.
> 	Use it for "{ 0 or 1 } * { 0 or 1 }",
> 	"X / bool_range_Y", and "-(type)!A" simplifcations.
OK
jeff


      parent reply	other threads:[~2021-09-19  5:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-14  0:19 apinski
2021-08-14  0:19 ` [PATCH 2/2] Fix 101805: Simplify min/max of boolean arguments apinski
2021-08-16  6:29   ` Richard Biener
2021-09-19  5:56   ` Jeff Law
2021-08-16  6:22 ` [PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it Richard Biener
2021-09-19  5:55 ` 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=53c80a07-3074-d249-634d-d1d6196c70e9@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).