https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81723
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Aug 8 12:49:39 2017 New Revision: 250953 URL: https://gcc.gnu.org/viewcvs?rev=250953&root=gcc&view=rev Log: 2017-08-08 Richard Biener <rguent...@suse.de> PR tree-optimization/81723 * tree-vect-slp.c (struct bst_traits): New hash traits. (bst_fail): New global. (vect_build_slp_tree_2): New worker, split out from ... (vect_build_slp_tree): ... this now wrapping it with using bst_fail set to cache SLP tree build fails. Properly handle max_tree_size. (vect_analyze_slp_instance): Allocate and free bst_fail. * gfortran.dg/pr81723.f: New testcase. Added: trunk/gcc/testsuite/gfortran.dg/pr81723.f Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-slp.c