This is the mail archive of the
mailing list for the GCC project.
Re: Suboptimal __restrict optimization?
On Tue, Oct 4, 2011 at 5:07 PM, Ulf Magnusson <email@example.com> wrote:
> On Mon, Oct 3, 2011 at 10:22 PM, Ian Lance Taylor <firstname.lastname@example.org> wrote:
>> Ulf Magnusson <email@example.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.
> 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.