]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/68060 (ICE on valid code at -O3 on x86_64-linux-gnu in vect_g...
authorRichard Biener <rguenther@suse.de>
Thu, 14 Jan 2016 15:13:19 +0000 (15:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 14 Jan 2016 15:13:19 +0000 (15:13 +0000)
commit3688e13db33177ac065aa0064ebd68e0afbadc66
tree8eb78b811d515f9b30d20fdf5618d44d172cbe7b
parenta2ae4661ab37d05dc2610fb8bc1a6a32b2928748
re PR tree-optimization/68060 (ICE on valid code at -O3 on x86_64-linux-gnu in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1413)

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.

From-SVN: r232367
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