summaryrefslogtreecommitdiff
path: root/gcc/tree-vect-transform.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-22 10:45:36 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-22 10:45:36 +0000
commit5f3637fb7c0cd231b203cc2e396c257c8cacf93d (patch)
treee9ec620f83f9eaca49d4facf37792c145adeeb73 /gcc/tree-vect-transform.c
parente30d194ba07f4aa7c7d2e1733241d85d80c4313d (diff)
downloadgcc-5f3637fb7c0cd231b203cc2e396c257c8cacf93d.tar.gz
* tree-vect-transform.c (vectorizable_load): Use the type of the
return value of the mask_for_load builtin to create realign_load stmt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-transform.c')
-rw-r--r--gcc/tree-vect-transform.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c
index 14d3cc5e2d0..ee17fa443bf 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);