2017-06-12 Richard Biener <rguenther@suse.de>
commit731c7a4564b249615da899b57f154134ebb1fccc
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2017 10:42:57 +0000 (12 10:42 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2017 10:42:57 +0000 (12 10:42 +0000)
treedd801f7d36dfdf64fc314abdee2c3f88c6a3b5fb
parent3be33b09fb8ae2d5eca4b8ca213844d2e25c62fc
2017-06-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/81053
* tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
with backedge value not defined in loop.  Simplify def stmt
compute.

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

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