Re: Add a vect_get_num_copies helper routine

2017-09-16 Thread Richard Sandiford
"H.J. Lu" writes: > On Thu, Sep 14, 2017 at 4:22 AM, Richard Sandiford > wrote: >> This patch adds a vectoriser helper routine to calculate how >> many copies of a vector statement we need. At present this >> is always: >> >> LOOP_VINFO_VECT_FACTOR (loop_vinfo) / TYPE_VECTOR_SUBPARTS (vectype)

Re: Add a vect_get_num_copies helper routine

2017-09-16 Thread H.J. Lu
On Thu, Sep 14, 2017 at 4:22 AM, Richard Sandiford wrote: > This patch adds a vectoriser helper routine to calculate how > many copies of a vector statement we need. At present this > is always: > > LOOP_VINFO_VECT_FACTOR (loop_vinfo) / TYPE_VECTOR_SUBPARTS (vectype) > > but later patches add o

Re: Add a vect_get_num_copies helper routine

2017-09-14 Thread Richard Biener
On Thu, Sep 14, 2017 at 1:22 PM, Richard Sandiford wrote: > This patch adds a vectoriser helper routine to calculate how > many copies of a vector statement we need. At present this > is always: > > LOOP_VINFO_VECT_FACTOR (loop_vinfo) / TYPE_VECTOR_SUBPARTS (vectype) > > but later patches add o

Add a vect_get_num_copies helper routine

2017-09-14 Thread Richard Sandiford
This patch adds a vectoriser helper routine to calculate how many copies of a vector statement we need. At present this is always: LOOP_VINFO_VECT_FACTOR (loop_vinfo) / TYPE_VECTOR_SUBPARTS (vectype) but later patches add other cases. Another benefit of using a helper routine is that it can a