https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97832
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- It's again reassociation making a mess out of the natural SLP opportunity (and thus SLP discovery fails miserably). One idea worth playing with would be to change reassociation to rank references from the same load group (as later vectorization would discover) the same. That said, further analysis and maybe a smaller testcase to look at is useful here. There is, after all, the opportunity to turn "bad" association at the source level to good for vectorization when -ffast-math is enabled as well.