From: Richard Guenther <richard.guenther@gmail.com>
To: Ulf Magnusson <ulfalizer@gmail.com>
Cc: Ian Lance Taylor <iant@google.com>, gcc@gcc.gnu.org
Subject: Re: Suboptimal __restrict optimization?
Date: Tue, 04 Oct 2011 15:47:00 -0000 [thread overview]
Message-ID: <CAFiYyc3KZcnf+XkPbXLQ_T0V6ox2eBeujv=zVdQk9K6_9hytTw@mail.gmail.com> (raw)
In-Reply-To: <CAFkk2KRt4fAW+jWVFnUqJ=qapDt0tPRNhXWqTkVXv6Tbhi8=sA@mail.gmail.com>
On Tue, Oct 4, 2011 at 5:07 PM, Ulf Magnusson <ulfalizer@gmail.com> wrote:
> On Mon, Oct 3, 2011 at 10:22 PM, Ian Lance Taylor <iant@google.com> wrote:
>> Ulf Magnusson <ulfalizer@gmail.com> writes:
>>
>>> Is there some reason why GCC couldn't generate this code for the first
>>> version of C::f()? Is this a failure of optimization, or am I missing
>>> something in how __restricted works?
>>
>> It's a failure of optimization.
>>
>> Ian
>>
>
> Is this something that has been improved in 4.6.x? (Sorry for the
> initial non-reply-all.)
With 4.6 we export points-to info to RTL, so in theory it could, but
in reality combine does not work to fuse load, add and store.
Richard.
prev parent reply other threads:[~2011-10-04 15:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-02 0:59 Ulf Magnusson
2011-10-03 20:23 ` Ian Lance Taylor
2011-10-04 15:08 ` Ulf Magnusson
2011-10-04 15:47 ` Richard Guenther [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='CAFiYyc3KZcnf+XkPbXLQ_T0V6ox2eBeujv=zVdQk9K6_9hytTw@mail.gmail.com' \
--to=richard.guenther@gmail.com \
--cc=gcc@gcc.gnu.org \
--cc=iant@google.com \
--cc=ulfalizer@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).