From: Jeff Law <law@redhat.com>
To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com
Subject: Re: Extend neg_const_int simplifications to other const rtxes
Date: Fri, 20 Sep 2019 20:25:00 -0000 [thread overview]
Message-ID: <3ba1ed81-6c9d-0fda-b6f6-6c722f93ad5d@redhat.com> (raw)
In-Reply-To: <mptmuf214a2.fsf@arm.com>
On 9/18/19 12:56 AM, Richard Sandiford wrote:
> This patch generalises some neg_const_int-based rtx simplifications
> so that they handle all CONST_SCALAR_INTs and also CONST_POLY_INT.
> This actually simplifies things a bit, since we no longer have
> to treat HOST_WIDE_INT_MIN specially.
>
> This is tested by later SVE patches.
>
> Tested on aarch64-linux-gnu with SVE (with and without follow-on
> patches) and x86_64-linux-gnu. OK to install?
>
> Richard
>
>
> 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
>
> gcc/
> * simplify-rtx.c (neg_const_int): Replace with...
> (neg_poly_int_rtx): ...this new function.
> (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
> to all CONST_SCALAR_INTs and to CONST_POLY_INT.
> (simplify_plus_minus): Likewise for constant terms here.
OK
jeff
prev parent reply other threads:[~2019-09-20 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-18 6:56 Richard Sandiford
2019-09-20 20:25 ` 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=3ba1ed81-6c9d-0fda-b6f6-6c722f93ad5d@redhat.com \
--to=law@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard.sandiford@arm.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).