diff options
author | Ira Rosen <irar@il.ibm.com> | 2006-10-22 10:45:36 +0000 |
---|---|---|
committer | Ira Rosen <irar@gcc.gnu.org> | 2006-10-22 10:45:36 +0000 |
commit | 52fb98560854235bdf791d6e2c7cfef3d52b1a93 (patch) | |
tree | e9ec620f83f9eaca49d4facf37792c145adeeb73 /gcc | |
parent | 7dc7d8a2e4fe80934e66828232ef1d8c38b4b8b1 (diff) | |
download | gcc-52fb98560854235bdf791d6e2c7cfef3d52b1a93.zip gcc-52fb98560854235bdf791d6e2c7cfef3d52b1a93.tar.gz gcc-52fb98560854235bdf791d6e2c7cfef3d52b1a93.tar.bz2 |
tree-vect-transform.c (vectorizable_load): Use the type of the return value of the mask_for_load builtin to create...
* tree-vect-transform.c (vectorizable_load): Use the type of the
return value of the mask_for_load builtin to create realign_load
stmt.
From-SVN: r117952
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree-vect-transform.c | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5eaf5b..cbc5d7b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-10-22 Ira Rosen <irar@il.ibm.com> + + * tree-vect-transform.c (vectorizable_load): Use the type of the + return value of the mask_for_load builtin to create realign_load + stmt. + 2006-10-22 Richard Sandiford <richard@codesourcery.com> * config/mips/mips.c (mips_split_const): Don't accept bare PLUS diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c index 14d3cc5..ee17fa44 100644 --- a/gcc/tree-vect-transform.c +++ b/gcc/tree-vect-transform.c @@ -1916,11 +1916,13 @@ vectorizable_load (tree stmt, block_stmt_iterator *bsi, tree *vec_stmt) /* Create permutation mask, if required, in loop preheader. */ tree builtin_decl; params = build_tree_list (NULL_TREE, init_addr); - vec_dest = vect_create_destination_var (scalar_dest, vectype); builtin_decl = targetm.vectorize.builtin_mask_for_load (); new_stmt = build_function_call_expr (builtin_decl, params); - new_stmt = build2 (MODIFY_EXPR, vectype, vec_dest, new_stmt); - new_temp = make_ssa_name (vec_dest, new_stmt); + vec_dest = vect_create_destination_var (scalar_dest, + TREE_TYPE (new_stmt)); + new_stmt = build2 (MODIFY_EXPR, TREE_TYPE (vec_dest), vec_dest, + new_stmt); + new_temp = make_ssa_name (vec_dest, new_stmt); TREE_OPERAND (new_stmt, 0) = new_temp; new_bb = bsi_insert_on_edge_immediate (pe, new_stmt); gcc_assert (!new_bb); |