On 08/28/2018 05:21 AM, Richard Sandiford wrote:
> All callers to vec_info::lookup_single_use are asking about the lhs of a
> statement that they're already examining.  It makes more sense to pass
> that statement instead of the SSA name, since it is then easier to
> handle statements that have been replaced by pattern statements.
> 
> A later patch adds support for pattern statements.  This one just
> changes the interface to make that possible.
> 
> 
> 2018-08-28  Richard Sandiford  <richard.sandif...@arm.com>
> 
> gcc/
>       * tree-vectorizer.h (vec_info::lookup_single_use): Take a
>       stmt_vec_info instead of an SSA name.
>       * tree-vectorizer.c (vec_info::lookup_single_use): Likewise.
>       * tree-vect-loop.c (vectorizable_reduction): Update call
>       accordingly.
>       * tree-vect-stmts.c (supportable_widening_operation): Likewise.
OK
jeff

Reply via email to