https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99807
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Just to say we currently require a ("random") SLP_TREE_REPRESENTATIVE even on VEC_PERM_EXPR SLP nodes. With the testcase the choosen one is no longer explicitely referenced and thus it does not get marked by SLP. Note this will also cause it to turn hybrid - so it's probably one of the cases where the SLP marking as patterns "helped".