Re: [PATCH] Use pointer sized array indices.

2018-01-30 Thread Thomas Koenig
Hi Janne, PING**2 OK. Regards, Thomas

Re: [PATCH] Use pointer sized array indices.

2018-01-30 Thread Janne Blomqvist
PING**2 On Wed, Jan 17, 2018 at 8:02 PM, Janne Blomqvist wrote: > PING > > On Fri, Dec 29, 2017 at 8:28 PM, Janne Blomqvist > wrote: >> On Fri, Dec 29, 2017 at 7:17 PM, Thomas Koenig wrote: >>> Hi Janne, >>> Using pointer sized variables (e.g. size_t / ptrdiff_t) when the variables ar

Re: [PATCH] Use pointer sized array indices.

2018-01-17 Thread Janne Blomqvist
PING On Fri, Dec 29, 2017 at 8:28 PM, Janne Blomqvist wrote: > On Fri, Dec 29, 2017 at 7:17 PM, Thomas Koenig wrote: >> Hi Janne, >> >>> Using pointer sized variables (e.g. size_t / ptrdiff_t) when the >>> variables are used as array indices allows accessing larger arrays, >>> and can be a sligh

Re: [PATCH] Use pointer sized array indices.

2017-12-29 Thread Janne Blomqvist
On Fri, Dec 29, 2017 at 7:17 PM, Thomas Koenig wrote: > Hi Janne, > >> Using pointer sized variables (e.g. size_t / ptrdiff_t) when the >> variables are used as array indices allows accessing larger arrays, >> and can be a slight performance improvement due to no need for sign or >> zero extending

Re: [PATCH] Use pointer sized array indices.

2017-12-29 Thread Thomas Koenig
Hi Janne, Using pointer sized variables (e.g. size_t / ptrdiff_t) when the variables are used as array indices allows accessing larger arrays, and can be a slight performance improvement due to no need for sign or zero extending, or masking. Unless I have missed something, all the examples are

[PATCH] Use pointer sized array indices.

2017-12-29 Thread Janne Blomqvist
Using pointer sized variables (e.g. size_t / ptrdiff_t) when the variables are used as array indices allows accessing larger arrays, and can be a slight performance improvement due to no need for sign or zero extending, or masking. Regtested on x86_64-pc-linux-gnu, Ok for trunk? libgfortran/Chang