public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mikhail Maltsev <maltsevm@gmail.com>
To: gcc-patches <gcc-patches@gnu.org>,
	Richard Biener <richard.guenther@gmail.com>
Subject: [PATCH 2/2][GCC] Add one more pattern to RTL if-conversion
Date: Mon, 23 May 2016 14:00:00 -0000	[thread overview]
Message-ID: <57430D0D.5040101@gmail.com> (raw)
In-Reply-To: <57430B42.8070505@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

This patch adds a new if-conversion pattern for the following case:

  if (test) x = A; else x = B;

  A and B are constants, abs(A - B) == 2^N, A != 0, B != 0


Bootstrapped and regtested on x86_64-linux. OK for trunk?

-- 
Regards,
    Mikhail Maltsev

gcc/testsuite/ChangeLog:

2016-05-23  Mikhail Maltsev  <maltsevm@gmail.com>

        * gcc.dg/ifcvt-6.c: New test.


gcc/ChangeLog:

2016-05-23  Mikhail Maltsev  <maltsevm@gmail.com>

        * ifcvt.c (noce_try_store_flag_constants): Add new pattern.

[-- Attachment #2: 0002-Add-ifcvt-pattern.patch --]
[-- Type: application/x-patch, Size: 1943 bytes --]

  parent reply	other threads:[~2016-05-23 14:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-23 13:53 [PATCH 0/2][GCC] " Mikhail Maltsev
2016-05-23 13:58 ` [PATCH 1/2][GCC] Refactor noce_try_store_flag_constants Mikhail Maltsev
2016-06-02  9:28   ` Bernd Schmidt
2016-05-23 14:00 ` Mikhail Maltsev [this message]
2016-05-23 14:15   ` [PATCH 2/2][GCC] Add one more pattern to RTL if-conversion Kyrill Tkachov
2016-05-24 19:06     ` Mikhail Maltsev
2016-06-02  9:33       ` Bernd Schmidt

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=57430D0D.5040101@gmail.com \
    --to=maltsevm@gmail.com \
    --cc=gcc-patches@gnu.org \
    --cc=richard.guenther@gmail.com \
    /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).