https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119155

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
OK, so the BB vect case (or contiguous loop) ends up with doing

                align = known_alignment (DR_TARGET_ALIGNMENT (first_dr_info));
                if (alignment_support_scheme == dr_aligned)
                  misalign = 0;
                else if (misalignment == DR_MISALIGNMENT_UNKNOWN)
                  {
                    align
                      = dr_alignment (vect_dr_behavior (vinfo, first_dr_info));
                    misalign = 0;

for an element alignment we'd then simply have to MIN (align, TYPE_SIZE
(elem_type)).

Reply via email to