This properly marks the loop as for a runtime alias peel rather than (pointlessly) going through DR_MISALIGNMENT.
Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2021-09-20 Richard Biener <rguent...@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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 967d43726db..1a7abe3ff29 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -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 ()) { -- 2.31.1