]> gcc.gnu.org Git - gcc.git/commit
[09/46] Add vec_info::lookup_single_use
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jul 2018 14:21:51 +0000 (14:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 31 Jul 2018 14:21:51 +0000 (14:21 +0000)
commit0d0a4e205bb6da84e9218c483acf7b13453f0698
tree1ca4973bd7c74cc1e5bda94fe35cba4da262da40
parentc98d05955ba54fcdbae37f2a9e81b8cca6f1ca59
[09/46] Add vec_info::lookup_single_use

This patch adds a helper function for seeing whether there is a single
user of an SSA name, and whether that user has a stmt_vec_info.

2018-07-31  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vectorizer.h (vec_info::lookup_single_use): Declare.
* tree-vectorizer.c (vec_info::lookup_single_use): New function.
* tree-vect-loop.c (vectorizable_reduction): Use it instead of
a single_imm_use-based sequence.
* tree-vect-stmts.c (supportable_widening_operation): Likewise.

From-SVN: r263124
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.c
gcc/tree-vectorizer.h
This page took 0.058669 seconds and 5 git commands to generate.