https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92173
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Oct 22 11:51:52 2019 New Revision: 277286 URL: https://gcc.gnu.org/viewcvs?rev=277286&root=gcc&view=rev Log: 2019-10-22 Richard Biener <rguent...@suse.de> PR tree-optimization/92173 * tree-vect-loop.c (vectorizable_reduction): If vect_transform_reduction cannot handle code-generation try without the single-def-use-cycle optimization. Pass optab_vector to optab_for_tree_code to get vector shifts as that's what we'd generate. * gcc.dg/torture/pr92173.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr92173.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-loop.c