Re: [OpenACC] internal fn folding

2015-11-08 Thread Tom de Vries
On 08/11/15 15:04, Thomas Schwinge wrote: Hi! On Thu, 5 Nov 2015 10:48:02 -0500, Nathan Sidwell wrote: >On 11/04/15 05:02, Bernd Schmidt wrote: > >On 11/02/2015 02:56 PM, Nathan Sidwell wrote: > >>On 10/28/15 14:40, Nathan Sidwell wrote: > >>>Richard, > >>>this patch adds folding for the ne

Re: [OpenACC] internal fn folding

2015-11-08 Thread Thomas Schwinge
Hi! On Thu, 5 Nov 2015 10:48:02 -0500, Nathan Sidwell wrote: > On 11/04/15 05:02, Bernd Schmidt wrote: > > On 11/02/2015 02:56 PM, Nathan Sidwell wrote: > >> On 10/28/15 14:40, Nathan Sidwell wrote: > >>> Richard, > >>> this patch adds folding for the new GOACC_DIM_POS and GOACC_DIM_SIZE > >>> in

Re: [OpenACC] internal fn folding

2015-11-05 Thread Nathan Sidwell
On 11/04/15 05:02, Bernd Schmidt wrote: On 11/02/2015 02:56 PM, Nathan Sidwell wrote: On 10/28/15 14:40, Nathan Sidwell wrote: Richard, this patch adds folding for the new GOACC_DIM_POS and GOACC_DIM_SIZE internal functions. IIUC gimple_fold_call is the right place to add this. The size of a

Re: [OpenACC] internal fn folding

2015-11-04 Thread Bernd Schmidt
On 11/02/2015 02:56 PM, Nathan Sidwell wrote: On 10/28/15 14:40, Nathan Sidwell wrote: Richard, this patch adds folding for the new GOACC_DIM_POS and GOACC_DIM_SIZE internal functions. IIUC gimple_fold_call is the right place to add this. The size of a compute dimension is very often a compile

Re: [OpenACC] internal fn folding

2015-11-02 Thread Nathan Sidwell
On 10/28/15 14:40, Nathan Sidwell wrote: Richard, this patch adds folding for the new GOACC_DIM_POS and GOACC_DIM_SIZE internal functions. IIUC gimple_fold_call is the right place to add this. The size of a compute dimension is very often a compile-time constant. On the host, in particular it'

[OpenACC] internal fn folding

2015-10-28 Thread Nathan Sidwell
Richard, this patch adds folding for the new GOACC_DIM_POS and GOACC_DIM_SIZE internal functions. IIUC gimple_fold_call is the right place to add this. The size of a compute dimension is very often a compile-time constant. On the host, in particular it's 1, which means we can deduce the POS