https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69454
--- Comment #17 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Ilya Enkovich from comment #15) > (In reply to Jakub Jelinek from comment #14) > > Have you tried H.J's patch? If I understand it right, IMHO at least the > > *mov<mode>_internal changes look desirable to me after the recent changes > > where misaligned_operand matters even for pre-AVX, and the result could be > > that if the stack can't be realigned and -mpreferred-stack-boundary is low, > > worst case there will be unaligned loads/stores to the stack slots instead > > of aligned ones. > > I don't like it aligns stack if we vectorize in GIMPLE (even if preferred > alignment is lower) but don't align stack if we "vectorize" in rtl. But I > don't see how to align stack properly at STV so I'm trying H.J.'s patch now. Do you have a testcase to show that you need to realign stack for STV?