]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix missed peeling for gaps with SLP load-lanes
authorRichard Biener <rguenther@suse.de>
Tue, 3 Sep 2024 13:04:42 +0000 (15:04 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Sep 2024 15:03:01 +0000 (17:03 +0200)
The following disables peeling for gap avoidance with using smaller
vector accesses when using load-lanes.

* tree-vect-stmts.cc (get_group_load_store_type): Only disable
peeling for gaps by using smaller vectors when not using
load-lanes.

gcc/tree-vect-stmts.cc

index ace1c8eaa0debf9f4ad23908587cbeef71ddb9f0..16f6889d853a6151525e0eef9637269c0ccea672 100644 (file)
@@ -2127,6 +2127,7 @@ get_group_load_store_type (vec_info *vinfo, stmt_vec_info stmt_info,
          unsigned HOST_WIDE_INT tem, num;
          if (overrun_p
              && !masked_p
+             && *memory_access_type != VMAT_LOAD_STORE_LANES
              && (((alss = vect_supportable_dr_alignment (vinfo, first_dr_info,
                                                          vectype, misalign)))
                   == dr_aligned