On 09/15/2017 04:49 AM, Richard Sandiford wrote:
> The vectoriser was calling vect_get_smallest_scalar_type without
> having proven that the type actually is a scalar.  This seems to
> be the intended behaviour: the ultimate test of whether the type
> is interesting (and hence scalar) is whether an associated vector
> type exists, but this is only tested later.
> 
> The patch simply makes the function cope gracefully with non-scalar
> inputs.
> 
> Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu.
> OK to install?
> 
> Richard
> 
> 
> 2017-09-15  Richard Sandiford  <richard.sandif...@linaro.org>
>           Alan Hayward  <alan.hayw...@arm.com>
>           David Sherwood  <david.sherw...@arm.com>
> 
> gcc/
>       * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Cope
>       with types that aren't in fact scalar.
OK.
jeff

Reply via email to