From: Robin Dapp <rdapp....@gmail.com>

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 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 66958543bf8..07e309d02e5 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));
-- 
2.49.0

Reply via email to