]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/46785 (Doesn't vectorize reduction x += y*y)
authorRichard Guenther <rguenther@suse.de>
Mon, 6 Dec 2010 10:05:07 +0000 (10:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 6 Dec 2010 10:05:07 +0000 (10:05 +0000)
commit4fc7469aba1e56200857c4fa218b851593726dae
tree723393de4a7e8c3ab1da1417fcfd29afa36c6676
parent64ad7c99ae47806848d30d3278ed2797e579f750
re PR tree-optimization/46785 (Doesn't vectorize reduction x += y*y)

2010-12-06  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/46785
* tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
call statements as operand definition.

* gcc.dg/vect/fast-math-vect-reduc-9.c: New testcase.

From-SVN: r167486
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c [new file with mode: 0644]
gcc/tree-vect-loop.c