PATCH RFC: Increase support for restrict qualifier

Richard Guenther richard.guenther@gmail.com
Mon Sep 26 09:48:00 GMT 2005


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.



More information about the Gcc mailing list