re PR tree-optimization/69166 (ICE in get_initial_def_for_reduction, at tree-vect...
authorRichard Biener <rguenther@suse.de>
Wed, 27 Jan 2016 14:54:03 +0000 (14:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 27 Jan 2016 14:54:03 +0000 (14:54 +0000)
commit167c7bfa499967104ff514075c581a58d4ac240b
tree09ba81f79679354fa63f7baab396d5491db9948a
parent1430fb1f563dd7434b262d1b1378d9954d13dc0c
re PR tree-optimization/69166 (ICE in get_initial_def_for_reduction, at tree-vect-loop.c:4188)

2016-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69166
* tree-vect-loop.c (vect_is_simple_reduction): Always check
reduction code for commutativity / associativity.

* gcc.dg/torture/pr69166.c: New testcase.

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