https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92222
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Oct 25 13:03:56 2019 New Revision: 277448 URL: https://gcc.gnu.org/viewcvs?rev=277448&root=gcc&view=rev Log: 2019-10-25 Richard Biener <rguent...@suse.de> PR tree-optimization/92222 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove. (_slp_oprnd_info::second_pattern): Likewise. (_slp_oprnd_info::any_pattern): New. (vect_create_oprnd_info): Adjust. (vect_get_and_check_slp_defs): Compute whether any stmt is in a pattern. (vect_build_slp_tree_2): Avoid building up a node from scalars if any of the operand defs, not just the first, is in a pattern. * gcc.dg/torture/pr92222.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr92222.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-slp.c