public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Eric Botcazou <ebotcazou@adacore.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [RFC] optimize x - y cmp 0 with undefined overflow
Date: Tue, 27 May 2014 16:19:00 -0000	[thread overview]
Message-ID: <e72dd481-e62f-434f-b6e8-cfc54eba61a9@email.android.com> (raw)
In-Reply-To: <1520919.Q3zy2vWhEX@polaris>

On May 27, 2014 6:12:58 PM CEST, Eric Botcazou <ebotcazou@adacore.com> wrote:
>> I'm asking to merge them (move them to fold_comparison).
>
>Done (in the end the patch removes more lines than it adds :-).

That's what I like!

>Tested on x86_64-suse-linux with no regressions.

OK.
Thanks,
Richard.


>
>2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
>
>	* fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
>	to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
>	Add X - Y CMP 0 to X CMP Y transformation.
>	(fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
>
>
>2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
>
>        * gcc.dg/fold-compare-8.c: New test.
>        * gcc.dg/Wstrict-overflow-25.c: Likewise.


      reply	other threads:[~2014-05-27 16:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-26 10:24 Eric Botcazou
2014-05-26 12:55 ` Richard Biener
2014-05-27  9:26   ` Eric Botcazou
2014-05-27  9:42     ` Richard Biener
2014-05-27 10:00       ` Eric Botcazou
2014-05-27 10:12         ` Richard Biener
2014-05-30  8:49           ` Eric Botcazou
2014-06-02 10:36             ` Richard Biener
2014-06-02 10:37               ` Richard Biener
2014-06-03  8:13               ` Eric Botcazou
2014-06-03 11:00                 ` Richard Biener
2014-06-06 10:54                   ` Eric Botcazou
2014-06-06 15:45                     ` Richard Biener
2014-06-20  9:40                       ` Eric Botcazou
2014-06-24 10:34                         ` Richard Biener
2014-09-29 23:01                           ` Eric Botcazou
2014-05-27 16:14       ` Eric Botcazou
2014-05-27 16:19         ` Richard Biener [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=e72dd481-e62f-434f-b6e8-cfc54eba61a9@email.android.com \
    --to=richard.guenther@gmail.com \
    --cc=ebotcazou@adacore.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).