This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fwprop patch testing


On Thursday 29 September 2005 17:29, Segher Boessenkool wrote:
> >    int f(int *);
> >    int verbosity;
> >    int *arr;
> >    int last;
> >
> >    void g ()
> >    {
> >       int i;
> >       if (last < 4000) {
> >          if (verbosity >= 4) f(&verbosity);
> >          for (i = 0; i <= last; i++) arr[i] = i;
> >       }
> >    }
>
> If last != 0, arr+i cannot point to last for any i,
> as last is not part of an array with two or more
> elements.  Does GCC perform loop versioning for
> cases like this?

No.

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]