]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect alignmet enhance TLC
authorRichard Biener <rguenther@suse.de>
Mon, 20 Sep 2021 09:17:49 +0000 (11:17 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 20 Sep 2021 09:25:18 +0000 (11:25 +0200)
This properly marks the loop as for a runtime alias peel rather
than (pointlessly) going through DR_MISALIGNMENT.

2021-09-20  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
Store -1 for runtime alias peeling iterations.

gcc/tree-vect-data-refs.c

index 967d43726db812810e132613d7d5f294b09e8484..1a7abe3ff29a27452f011e28b9d2e99377d30732 100644 (file)
@@ -2268,8 +2268,7 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo)
           if (npeel)
             LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo) = npeel;
           else
-            LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo)
-             = DR_MISALIGNMENT (dr0_info);
+           LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo) = -1;
          SET_DR_MISALIGNMENT (dr0_info, 0);
          if (dump_enabled_p ())
             {