https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93230
--- Comment #8 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Yes, the variable element numbers were the difficulties in question that slowed things down last time, as I recall. We may want to try to fold the simple cases in gimple and let the rest run through to expand.