https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124743
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- So this is another case where SLP scheduling ends up doing invariant motion. We are getting confused with random UIDs on GIMPLE stmts vs. the vectorized stmts which all get UID zero and the dominance check we perform. I think the issue is latent for quite a while. I'm testing a patch.
