diff options
author | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-18 04:37:32 +0000 |
---|---|---|
committer | dorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-18 04:37:32 +0000 |
commit | e817bf15de59e519b89986d27975aecdcafd81f8 (patch) | |
tree | 76ae0deab6b7d30ce6eae7e59959836737c46570 /gcc/tree-vect-transform.c | |
parent | 052c349af5f3b752faa0b0294a48d4fd695dbf3c (diff) | |
download | gcc-e817bf15de59e519b89986d27975aecdcafd81f8.tar.gz |
* tree-vect-transform.c (get_initial_def_for_induction): Replace
GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
(get_initial_def_for_reduction): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123034 138bc75d-0d04-0410-961f-82ee72b054a4
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 bddea1e5dc2..456138361d4 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); |