https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94953
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So there looks like there are two issues. First warning for each template instantiation. The second problem is SLP is introducing some uses that was not in the original IR.