Commit 5f3637fb authored by irar's avatar irar

* 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
parent e30d194b
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
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment