From: Alan Hayward <alan.hayward@arm.com>
To: Alan Lawrence <Alan.Lawrence@arm.com>,
Richard Biener <richard.guenther@gmail.com>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] vectorizing conditional expressions (PR tree-optimization/65947)
Date: Fri, 18 Sep 2015 14:14:00 -0000 [thread overview]
Message-ID: <D221D644.838E%alan.hayward@arm.com> (raw)
In-Reply-To: <55FC110D.1070806@arm.com>
On 18/09/2015 14:26, "Alan Lawrence" <Alan.Lawrence@arm.com> wrote:
>On 18/09/15 13:17, Richard Biener wrote:
>>
>> Ok, I see.
>>
>> That this case is already vectorized is because it implements MAX_EXPR,
>> modifying it slightly to
>>
>> int foo (int *a)
>> {
>> int val = 0;
>> for (int i = 0; i < 1024; ++i)
>> if (a[i] > val)
>> val = a[i] + 1;
>> return val;
>> }
>>
>> makes it no longer handled by current code.
>>
>
>Yes. I believe the idea for the patch is to handle arbitrary expressions
>like
>
>int foo (int *a)
>{
> int val = 0;
> for (int i = 0; i < 1024; ++i)
> if (some_expression (i))
> val = another_expression (i);
> return val;
>}
Yes, that’s correct. Hopefully my new test cases should cover everything.
Alan.
next prev parent reply other threads:[~2015-09-18 13:55 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-10 15:11 Alan Hayward
2015-09-10 22:34 ` Bill Schmidt
2015-09-11 9:19 ` Alan Hayward
2015-09-11 13:23 ` Bill Schmidt
2015-09-11 13:55 ` Ramana Radhakrishnan
2015-09-11 14:41 ` Richard Sandiford
2015-09-11 15:14 ` Bill Schmidt
2015-09-11 15:30 ` Richard Sandiford
2015-09-11 15:50 ` Bill Schmidt
2015-09-11 16:54 ` Ramana Radhakrishnan
2015-09-15 11:47 ` Richard Biener
2015-09-14 9:50 ` Alan Lawrence
2015-09-14 14:20 ` Bill Schmidt
2015-09-15 12:10 ` Richard Biener
2015-09-15 15:41 ` Alan Hayward
2015-09-18 12:22 ` Richard Biener
2015-09-18 13:36 ` Alan Lawrence
2015-09-18 14:14 ` Alan Hayward [this message]
[not found] ` <D221D55E.8386%alan.hayward@arm.com>
2015-09-23 16:07 ` Alan Hayward
2015-09-30 12:49 ` Richard Biener
2015-10-01 15:22 ` Alan Hayward
2015-09-15 12:12 ` Richard Biener
2015-10-19 8:34 Alan Hayward
2015-10-21 10:46 ` Richard Biener
2015-10-22 14:18 ` Alan Lawrence
2015-10-22 14:23 ` Alan Hayward
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=D221D644.838E%alan.hayward@arm.com \
--to=alan.hayward@arm.com \
--cc=Alan.Lawrence@arm.com \
--cc=gcc-patches@gcc.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).