From: Bill Schmidt <wschmidt@linux.vnet.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com
Subject: Re: [PATCH, rs6000] Add expansions for min/max vector reductions
Date: Wed, 16 Sep 2015 15:29:00 -0000 [thread overview]
Message-ID: <1442417348.2896.47.camel@gnopaine> (raw)
In-Reply-To: <20150916151455.GA13365@gate.crashing.org>
On Wed, 2015-09-16 at 10:14 -0500, Segher Boessenkool wrote:
> On Wed, Sep 16, 2015 at 09:28:09AM -0500, Bill Schmidt wrote:
> > I was able to use iterators for the sub-doubleword ...scal_<mode>
> > expansions, but that's all. I experimented with trying to use
> > code_iterators to generate the {smax,smin,umax,umin} expansions, but
> > couldn't find a way to make that work, as the substitution wasn't being
> > done into the UNSPEC constants. If there is a way to do this, please
> > let me know and I'll try to reduce the code size.
>
> Do you need the unspecs at all? They are only used in the pattern of
> expanders, and all such expanders call DONE. You can instead write
> those patterns as just USEs of their operands?
Hi Segher,
Yes, I had just independently come to the same conclusion -- since we
are always calling DONE, I don't need the UNSPECs at all. I'm verifying
to be sure, but this should solve my problem.
Thanks!
Bill
>
>
> Segher
>
next prev parent reply other threads:[~2015-09-16 15:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 14:28 Bill Schmidt
2015-09-16 14:36 ` David Edelsohn
2015-09-16 14:42 ` Ramana Radhakrishnan
2015-09-16 15:15 ` Bill Schmidt
2015-09-16 15:29 ` Segher Boessenkool
2015-09-16 15:29 ` Bill Schmidt [this message]
2015-09-16 15:41 ` Alan Lawrence
2015-09-16 16:14 ` Bill Schmidt
2015-09-16 17:09 ` Alan Lawrence
2015-09-16 22:04 ` Bill Schmidt
2015-09-17 7:47 ` Richard Biener
2015-09-17 14:28 ` Bill Schmidt
2015-09-17 16:32 ` Bill Schmidt
2015-09-18 8:36 ` Richard Biener
2015-09-18 15:44 ` Alan Lawrence
2015-09-17 19:08 ` Segher Boessenkool
2015-09-18 8:39 ` Richard Biener
2015-09-18 13:15 ` Bill Schmidt
2015-09-18 13:21 ` Richard Biener
2015-09-18 13:54 ` Bill Schmidt
2015-09-16 16:25 ` Bill Schmidt
2015-09-16 18:26 ` Alan Lawrence
2015-09-16 18:37 ` Bill 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=1442417348.2896.47.camel@gnopaine \
--to=wschmidt@linux.vnet.ibm.com \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=segher@kernel.crashing.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).