https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119181
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Hongtao Liu from comment #2) > (In reply to Andrew Pinski from comment #1) > > Looks like it is missing the commutativity property of multiply. > Note compiler options is with Ofast. What i mean is the commutative property is not being taken into account, that is the vectorizer misses the commutative property in some cases. PR 115833 is a similar case where the commutative property is not being taken into account.