On 09/15/2017 04:44 AM, Richard Sandiford wrote:
> vect_transform_stmt calls vectorizable_live_operation for
> each live statement in an SLP node, but vect_analyze_stmt
> only called it the once. This patch makes vect_analyze_stmt
> consistent with vect_transform_stmt, which should be a bit
> more robust, and also means that a later patch can use
> slp_index when deciding validity.
>
> 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-stmts.c (can_vectorize_live_stmts): New function,
> split out from...
> (vect_transform_stmt): ...here.
> (vect_analyze_stmt): Use it instead of calling
> vectorizable_live_operation directly.
OK.
jeff