Re: Question about loop induction variables

2017-05-08 Thread Richard Biener via gcc
On Sun, May 7, 2017 at 11:22 AM, Fredrik Hederstierna wrote: > Hi, > > I have a question about loop induction variables, related to > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67213 > > Consider a simple loop like > > int ix; > for (ix = 0; ix &l

Question about loop induction variables

2017-05-07 Thread Fredrik Hederstierna
Hi, I have a question about loop induction variables, related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67213 Consider a simple loop like int ix; for (ix = 0; ix < 6; ix++) { data[ix] = ix; } In this case variable 'ix' is used as counting variable for array in