Return value - the result of the loop-header phi node. */
tree
-vect_setup_realignment (vec_info *vinfo, stmt_vec_info stmt_info,
+vect_setup_realignment (vec_info *vinfo, stmt_vec_info stmt_info, tree vectype,
gimple_stmt_iterator *gsi, tree *realignment_token,
enum dr_alignment_support alignment_support_scheme,
tree init_addr,
class loop **at_loop)
{
- tree vectype = STMT_VINFO_VECTYPE (stmt_info);
loop_vec_info loop_vinfo = dyn_cast <loop_vec_info> (vinfo);
dr_vec_info *dr_info = STMT_VINFO_DR_INFO (stmt_info);
struct data_reference *dr = dr_info->dr;
if (!costing_p)
{
if (!diff_first_stmt_info)
- msq = vect_setup_realignment (vinfo, first_stmt_info, gsi,
+ msq = vect_setup_realignment (vinfo, first_stmt_info, vectype, gsi,
&realignment_token,
alignment_support_scheme, NULL_TREE,
&at_loop);
stmt_info, diff);
if (alignment_support_scheme == dr_explicit_realign)
{
- msq = vect_setup_realignment (vinfo,
- first_stmt_info_for_drptr, gsi,
+ msq = vect_setup_realignment (vinfo, first_stmt_info_for_drptr,
+ vectype, gsi,
&realignment_token,
alignment_support_scheme,
dataref_ptr, &at_loop);
tree vs = size_int (TYPE_VECTOR_SUBPARTS (vectype));
if (compute_in_loop)
- msq = vect_setup_realignment (vinfo, first_stmt_info, gsi,
- &realignment_token,
+ msq = vect_setup_realignment (vinfo, first_stmt_info, vectype,
+ gsi, &realignment_token,
dr_explicit_realign,
dataref_ptr, NULL);
extern internal_fn vect_load_lanes_supported (tree, unsigned HOST_WIDE_INT,
bool, vec<int> * = nullptr);
extern tree vect_setup_realignment (vec_info *,
- stmt_vec_info, gimple_stmt_iterator *,
+ stmt_vec_info, tree, gimple_stmt_iterator *,
tree *, enum dr_alignment_support, tree,
class loop **);
extern tree vect_get_new_vect_var (tree, enum vect_var_kind, const char *);