diff options
author | Richard Guenther <rguenther@suse.de> | 2010-04-09 10:40:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-04-09 10:40:14 +0000 |
commit | b690cc0f331d0f63e2de4f0aa2e3883444cfead2 (patch) | |
tree | d8ea3d9ce37b8e002c9ace43434d9d7c2b6fca9c /gcc/tree-vect-slp.c | |
parent | ced572837c918c138eee3e901d4b11a9996d7f07 (diff) | |
download | gcc-b690cc0f331d0f63e2de4f0aa2e3883444cfead2.zip gcc-b690cc0f331d0f63e2de4f0aa2e3883444cfead2.tar.gz gcc-b690cc0f331d0f63e2de4f0aa2e3883444cfead2.tar.bz2 |
tree-vectorizer.h (struct _stmt_vec_info): Document that vectype is the type of the LHS.
2010-04-09 Richard Guenther <rguenther@suse.de>
* tree-vectorizer.h (struct _stmt_vec_info): Document
that vectype is the type of the LHS.
(supportable_widening_operation, supportable_narrowing_operation):
Get both input and output vector types as arguments.
(vect_is_simple_use_1): Declare.
(get_same_sized_vectype): Likewise.
* tree-vect-loop.c (vect_determine_vectorization_factor):
Set STMT_VINFO_VECTYPE to the vector type of the def.
(vectorizable_reduction): Adjust.
* tree-vect-patterns.c (vect_recog_widen_mult_pattern):
Adjust. Specify the output vector type.
(vect_pattern_recog_1): Adjust.
* tree-vect-stmts.c (get_same_sized_vectype): New function.
(vectorizable_call): Adjust.
(vectorizable_conversion): Likewise.
(vectorizable_operation): Likewise.
(vectorizable_type_demotion): Likewise.
(vectorizable_type_promotion): Likewise.
(vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
the def.
(vect_is_simple_use_1): New function.
(supportable_widening_operation): Get both input and output
vector types.
(supportable_narrowing_operation): Likewise.
* tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
From-SVN: r158157
Diffstat (limited to 'gcc/tree-vect-slp.c')
-rw-r--r-- | gcc/tree-vect-slp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 3f97d62..0e4f6ce 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -1971,7 +1971,7 @@ vect_schedule_slp_instance (slp_tree node, slp_instance instance, stmt_info = vinfo_for_stmt (stmt); /* VECTYPE is the type of the destination. */ - vectype = get_vectype_for_scalar_type (TREE_TYPE (gimple_assign_lhs (stmt))); + vectype = STMT_VINFO_VECTYPE (stmt_info); nunits = (unsigned int) TYPE_VECTOR_SUBPARTS (vectype); group_size = SLP_INSTANCE_GROUP_SIZE (instance); |