re PR tree-optimization/91568 (internal compiler error: in vect_schedule_slp_instance...
authorRichard Biener <rguenther@suse.de>
Thu, 29 Aug 2019 08:07:35 +0000 (08:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 29 Aug 2019 08:07:35 +0000 (08:07 +0000)
commitf48e4da3259d52076f86aa081cece40dfda7b235
tree1614e85332b07f8e43f1bfa8746ecce55a7c2d1d
parent8a902edbbdb53a00209e88b6182457941ff196a9
re PR tree-optimization/91568 (internal compiler error: in vect_schedule_slp_instance, at tree-vect-slp.c:3922)

2019-08-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91568
* tree-vectorizer.h (_slp_tree::max_nunits): Add.
(vect_update_max_nunits): Add overload for poly_uint64.
* tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
(vect_build_slp_tree): Record max_nunits into the subtree
and merge it upwards.
(vect_print_slp_tree): Print max_nunits.

* gfortran.dg/pr91568.f: New testcase.

From-SVN: r275023
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr91568.f [new file with mode: 0644]
gcc/tree-vect-slp.c
gcc/tree-vectorizer.h