public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gmail.com>
To: Richard Guenther <rguenther@suse.de>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Propagate out predicate inversions in forwprop
Date: Wed, 07 Sep 2011 19:51:00 -0000	[thread overview]
Message-ID: <CA+=Sn1kRaEtpAhvyjceW7MZ_tmBvnkL0=HzmjG18ECrdOh31jA@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1109071339110.2130@zhemvz.fhfr.qr>

On Wed, Sep 7, 2011 at 4:46 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This makes sure that we propagate comparisons that we cannot invert
> into inverted conditions by swapping edges or the conditional ops.
> For the testcase it transforms
>
> <bb 2>:
>  D.2724_4 = xx_2(D) < xy_3(D);
>  p_5 = (int) D.2724_4;
>  D.2725_6 = p_5 == 0;
>  np_7 = (int) D.2725_6;
>  if (np_7 != 0)
>
> to
>
> <bb 2>:
>  if (xx_2(D) < xy_3(D))
>
> while without the patch we would be left with
>
> <bb 2>:
>  D.2724_4 = xx_2(D) < xy_3(D);
>  if (D.2724_4 == 0)


This sounds like PR 15558.

Thanks,
Andrew Pinski

      reply	other threads:[~2011-09-07 19:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-07 11:55 Richard Guenther
2011-09-07 19:51 ` Andrew Pinski [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='CA+=Sn1kRaEtpAhvyjceW7MZ_tmBvnkL0=HzmjG18ECrdOh31jA@mail.gmail.com' \
    --to=pinskia@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=rguenther@suse.de \
    /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).