re PR tree-optimization/81510 (ice in operator[], at vec.h:749)
authorRichard Biener <rguenther@suse.de>
Tue, 25 Jul 2017 11:02:32 +0000 (11:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 25 Jul 2017 11:02:32 +0000 (11:02 +0000)
commit5ea71a5a7c9f25a7539bdc8c5ed7a92bf2e2115c
treed8422d939914316f82a4becf678760077bcbcf77
parentfdd293743d43c5721e75d951d57d73b50af6738d
re PR tree-optimization/81510 (ice in operator[],  at vec.h:749)

2017-07-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/81510
* tree-vect-loop.c (vect_is_simple_reduction): When the
reduction stmt is not inside the loop bail out.

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

From-SVN: r250504
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr81510-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr81510.c [new file with mode: 0644]
gcc/tree-vect-loop.c