On 10/23/2017 11:30 AM, Richard Sandiford wrote: > This patch makes vectorizable_conversion cope with variable-length > vectors. We already require the number of elements in one vector > to be a multiple of the number of elements in the other vector, > so the patch uses that to choose between widening and narrowing. > > > 2017-10-23 Richard Sandiford <richard.sandif...@linaro.org> > Alan Hayward <alan.hayw...@arm.com> > David Sherwood <david.sherw...@arm.com> > > gcc/ > * tree-vect-stmts.c (vectorizable_conversion): Treat the number > of units as polynomial. Choose between WIDE and NARROW based > on multiple_p. If I'm reding this right, if nunits_in < nunits_out, but the latter is not a multiple of the former, we'll choose WIDEN, which is the opposite of what we'd do before this patch. Was that intentional?
jeff