This replaces if (slp) with if (1) and if (!slp) with if (0). gcc/ChangeLog:
* tree-vect-stmts.cc (vectorizable_load): Make non-slp paths unreachable. --- gcc/tree-vect-stmts.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 66958543bf8..c1998a22448 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -10689,7 +10689,7 @@ vectorizable_load (vec_info *vinfo, first_dr_info = dr_info; } - if (slp && grouped_load + if (1 && grouped_load && memory_access_type == VMAT_STRIDED_SLP) { group_size = DR_GROUP_SIZE (first_stmt_info); @@ -10830,7 +10830,7 @@ vectorizable_load (vec_info *vinfo, ltype = build_aligned_type (ltype, align * BITS_PER_UNIT); } - if (slp) + if (1) { /* For SLP permutation support we need to load the whole group, not only the number of vector stmts the permutation result @@ -10883,14 +10883,14 @@ vectorizable_load (vec_info *vinfo, CONSTRUCTOR_APPEND_ELT (v, NULL_TREE, new_temp); group_el += lnel; - if (! slp + if (0 || group_el == group_size) { n_groups++; /* When doing SLP make sure to not load elements from the next vector iteration, those will not be accessed so just use the last element again. See PR107451. */ - if (!slp || known_lt (n_groups, vf)) + if (0 || known_lt (n_groups, vf)) { tree newoff = copy_ssa_name (running_off); gimple *incr @@ -10938,7 +10938,7 @@ vectorizable_load (vec_info *vinfo, if (!costing_p) { - if (slp) + if (1) { if (slp_perm) dr_chain.quick_push (gimple_assign_lhs (new_stmt)); @@ -11032,7 +11032,7 @@ vectorizable_load (vec_info *vinfo, group_gap_adj = 0; /* VEC_NUM is the number of vect stmts to be created for this group. */ - if (slp) + if (1) { grouped_load = false; /* If an SLP permutation is from N elements to N elements, @@ -11077,7 +11077,7 @@ vectorizable_load (vec_info *vinfo, group_size = vec_num = 1; group_gap_adj = 0; ref_type = reference_alias_ptr_type (DR_REF (first_dr_info->dr)); - if (slp) + if (1) vec_num = SLP_TREE_NUMBER_OF_VEC_STMTS (slp_node); } -- 2.49.0