2016-01-14 Richard Biener <rguenther@suse.de>
commit24651fb75237d2075b0c18f2adfb36bd9507e913
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 15:13:19 +0000 (14 15:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Jan 2016 15:13:19 +0000 (14 15:13 +0000)
tree8eb78b811d515f9b30d20fdf5618d44d172cbe7b
parentf6a7e9eac86ab44baa6ceb4c467ae47a2a815eea
2016-01-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/68060
* tree-vect-loop.c (vect_is_simple_reduction): Check the
outer loop reduction is only used in the inner loop before
detecting a double reduction.

* gcc.dg/torture/pr68060-1.c: New testcase.
* gcc.dg/torture/pr68060-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232367 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr68060-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr68060-2.c [new file with mode: 0644]
gcc/tree-vect-loop.c