https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106022
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 53169 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53169&action=edit A patch This patch multiplies the vector store cost by the number of scalar elements in a word to properly compare scalar store cost against vector store cost.