This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: Increase support for restrict qualifier
On 25 Sep 2005 10:10:39 -0700, Ian Lance Taylor <ian@airs.com> wrote:
> Daniel Berlin <dberlin@dberlin.org> writes:
>
> > second, how often does this actually set anything useful with restrict
> > types (I assume the value is not interesting in any other cases)?
>
> In functions which use the restrict qualifier, it does something
> useful pretty often: just about every time the restricted pointer is
> used other than as a simple *p. The real question, which I don't know
> the answer to, is how much that helps in common code. (It does make a
> significant difference in certain key functions at my current job.)
It does gain about 2-5% for certain C-to-POOMA comparison benchmarsk
(only for the C part of course). Also we have PRs about this and it is
a regression. So I defenitively would welcome a patch to do this for 4.1
(and even 4.0).
Richard.