https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116674
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- The issue is that when we're analyzing SLP instances sharing a node as in this case a SIMD call but we fail an instance we're scrapping it and marking the nodes we analyzed as part of that instance as not analyzed. But vectorizable_simd_clone_call isn't really set up to be called multiple times for analysis only. For loop vect it's easy to simply not continue analyzing instances since we have to give up anyway but of course with BB vectorization dropping instances is a feature and thus we can run into the very same issue there. The issue is latent thus. I have a patch that should make vectorizable_simd_clone_call more resilent.