diff options
author | Dorit Nuzman <dorit@il.ibm.com> | 2007-03-18 04:37:32 +0000 |
---|---|---|
committer | Dorit Nuzman <dorit@gcc.gnu.org> | 2007-03-18 04:37:32 +0000 |
commit | f58e97341c3204fb2ab0fc6a03778e5923a9d94c (patch) | |
tree | 76ae0deab6b7d30ce6eae7e59959836737c46570 /gcc/tree-vect-transform.c | |
parent | 59111135a832fdf0f24555e234b98452a0522073 (diff) | |
download | gcc-f58e97341c3204fb2ab0fc6a03778e5923a9d94c.zip gcc-f58e97341c3204fb2ab0fc6a03778e5923a9d94c.tar.gz gcc-f58e97341c3204fb2ab0fc6a03778e5923a9d94c.tar.bz2 |
tree-vect-transform.c (get_initial_def_for_induction): Replace GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
* tree-vect-transform.c (get_initial_def_for_induction): Replace
GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
(get_initial_def_for_reduction): Likewise.
From-SVN: r123034
Diffstat (limited to 'gcc/tree-vect-transform.c')
-rw-r--r-- | gcc/tree-vect-transform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c index bddea1e..4561383 100644 --- a/gcc/tree-vect-transform.c +++ b/gcc/tree-vect-transform.c @@ -531,7 +531,7 @@ get_initial_def_for_induction (tree stmt, tree iv_phi) struct loop *loop = LOOP_VINFO_LOOP (loop_vinfo); tree scalar_type = TREE_TYPE (iv_phi); tree vectype = get_vectype_for_scalar_type (scalar_type); - int nunits = GET_MODE_NUNITS (TYPE_MODE (vectype)); + int nunits = TYPE_VECTOR_SUBPARTS (vectype); edge pe = loop_preheader_edge (loop); basic_block new_bb; block_stmt_iterator bsi; @@ -1001,7 +1001,7 @@ get_initial_def_for_reduction (tree stmt, tree init_val, tree *scalar_def) { stmt_vec_info stmt_vinfo = vinfo_for_stmt (stmt); tree vectype = STMT_VINFO_VECTYPE (stmt_vinfo); - int nunits = GET_MODE_NUNITS (TYPE_MODE (vectype)); + int nunits = TYPE_VECTOR_SUBPARTS (vectype); int nelements; enum tree_code code = TREE_CODE (GIMPLE_STMT_OPERAND (stmt, 1)); tree type = TREE_TYPE (init_val); |