re PR tree-optimization/81053 (ICE on valid code at -O3 on x86_64-linux-gnu: in as_a...
authorRichard Biener <rguenther@suse.de>
Mon, 12 Jun 2017 10:42:57 +0000 (10:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 12 Jun 2017 10:42:57 +0000 (10:42 +0000)
commit3fd7fe218b325a5b3d1bd38b12ab0e6d00e1e7dc
treedd801f7d36dfdf64fc314abdee2c3f88c6a3b5fb
parentd1609a232616d0a85f2f7bd9ebf4dae4b11fd481
re PR tree-optimization/81053 (ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192)

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.

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