Lines 119-126
vect_init_pattern_stmt (vec_info *vinfo, gimple *pattern_stmt,
Link Here
|
119 |
= STMT_VINFO_DEF_TYPE (orig_stmt_info); |
119 |
= STMT_VINFO_DEF_TYPE (orig_stmt_info); |
120 |
if (!STMT_VINFO_VECTYPE (pattern_stmt_info)) |
120 |
if (!STMT_VINFO_VECTYPE (pattern_stmt_info)) |
121 |
{ |
121 |
{ |
122 |
gcc_assert (VECTOR_BOOLEAN_TYPE_P (vectype) |
122 |
gcc_assert (!vectype |
123 |
== vect_use_mask_type_p (orig_stmt_info)); |
123 |
|| (VECTOR_BOOLEAN_TYPE_P (vectype) |
|
|
124 |
== vect_use_mask_type_p (orig_stmt_info))); |
124 |
STMT_VINFO_VECTYPE (pattern_stmt_info) = vectype; |
125 |
STMT_VINFO_VECTYPE (pattern_stmt_info) = vectype; |
125 |
pattern_stmt_info->mask_precision = orig_stmt_info->mask_precision; |
126 |
pattern_stmt_info->mask_precision = orig_stmt_info->mask_precision; |
126 |
} |
127 |
} |
Lines 4283-4290
vect_recog_bool_pattern (vec_info *vinfo,
Link Here
|
4283 |
|| VECT_SCALAR_BOOLEAN_TYPE_P (TREE_TYPE (lhs))) |
4284 |
|| VECT_SCALAR_BOOLEAN_TYPE_P (TREE_TYPE (lhs))) |
4284 |
return NULL; |
4285 |
return NULL; |
4285 |
vectype = get_vectype_for_scalar_type (vinfo, TREE_TYPE (lhs)); |
4286 |
vectype = get_vectype_for_scalar_type (vinfo, TREE_TYPE (lhs)); |
4286 |
if (vectype == NULL_TREE) |
|
|
4287 |
return NULL; |
4288 |
|
4287 |
|
4289 |
if (check_bool_pattern (var, vinfo, bool_stmts)) |
4288 |
if (check_bool_pattern (var, vinfo, bool_stmts)) |
4290 |
{ |
4289 |
{ |
Lines 5696-5702
vect_pattern_recog_1 (vec_info *vinfo,
Link Here
|
5696 |
} |
5695 |
} |
5697 |
|
5696 |
|
5698 |
loop_vinfo = dyn_cast <loop_vec_info> (vinfo); |
5697 |
loop_vinfo = dyn_cast <loop_vec_info> (vinfo); |
5699 |
gcc_assert (pattern_vectype); |
|
|
5700 |
|
5698 |
|
5701 |
/* Found a vectorizable pattern. */ |
5699 |
/* Found a vectorizable pattern. */ |
5702 |
if (dump_enabled_p ()) |
5700 |
if (dump_enabled_p ()) |
5703 |
- |
|
|