https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114799
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:026ecb914d3d84c6e803cedb8b1677d3e7ddd60f commit r13-8698-g026ecb914d3d84c6e803cedb8b1677d3e7ddd60f Author: Richard Biener <rguent...@suse.de> Date: Tue Apr 23 08:39:03 2024 +0200 tree-optimization/114799 - SLP and patterns The following plugs a hole with computing whether a SLP node has any pattern stmts which is important to know when we want to replace it by a CTOR from external defs. PR tree-optimization/114799 * tree-vect-slp.cc (vect_get_and_check_slp_defs): Properly update ->any_pattern when swapping operands. * gcc.dg/vect/bb-slp-pr114799.c: New testcase. (cherry picked from commit 18e8e55487238237f37f621668fdee316624981a)