]> git.ipfire.org Git - thirdparty/gcc.git/commit
2019-10-17 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 11:48:45 +0000 (11:48 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2019 11:48:45 +0000 (11:48 +0000)
commit5ba6128602fdc18122e8f4c3b88e6200e7afd444
tree63f122fab3cd3141e4f8ebbfc2cd06115b7ee28b
parenta6d1006b1b22ea685f6d84afad7e74bcf145e51c
2019-10-17  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (needs_fold_left_reduction_p): Export.
(vect_is_simple_reduction): Move all validity checks ...
(vectorizable_reduction): ... here.  Compute whether we
need a fold-left reduction here.
* tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
both overloads, check needs_fold_left_reduction_p directly.
* tree-vectorizer.h (needs_fold_left_reduction_p): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277100 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-patterns.c
gcc/tree-vectorizer.h