2016-01-27 Richard Biener <rguenther@suse.de>
commitc88301adefa9a0db1b48ecae8996c3bfd0fe5527
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 2016 14:54:03 +0000 (27 14:54 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Jan 2016 14:54:03 +0000 (27 14:54 +0000)
tree09ba81f79679354fa63f7baab396d5491db9948a
parent8ca4755082d1fca190e25d32592f9f5303a608aa
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.

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