https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116674
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:638e90e5e8000b6b6b320b02229310c63c441b9f commit r14-11855-g638e90e5e8000b6b6b320b02229310c63c441b9f Author: Richard Biener <rguent...@suse.de> Date: Wed Sep 11 13:54:33 2024 +0200 tree-optimization/116674 - vectorizable_simd_clone_call and re-analysis When SLP analysis scraps an instance because it fails to analyze we can end up calling vectorizable_* in analysis mode on a node that was analyzed during the analysis of that instance again. vectorizable_simd_clone_call wasn't expecting that and instead guarded analysis/transform code on populated data structures. The following changes it so it survives re-analysis. PR tree-optimization/116674 * tree-vect-stmts.cc (vectorizable_simd_clone_call): Support re-analysis. * g++.dg/vect/pr116674.cc: New testcase. (cherry picked from commit 09a514fbb67caf7e33a6ceddf524ee21024c33c5)