re PR tree-optimization/92345 (ICE in vec<_stmt_vec_info*, va_heap, vl_embed>::space...
authorRichard Biener <rguenther@suse.de>
Mon, 4 Nov 2019 14:50:11 +0000 (14:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Nov 2019 14:50:11 +0000 (14:50 +0000)
commita6ba623777513e31721030092e4d786f461a0f06
tree50191fd7a90f87d35c5946d77884152bb82d1e39
parent7237f93eb3aaecb27800ce1688ece4c4cbcb790b
re PR tree-optimization/92345 (ICE in vec<_stmt_vec_info*, va_heap, vl_embed>::space (vect_get_and_check_slp_defs))

2019-11-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92345
* tree-vect-loop.c (vect_is_simple_reduction): Return whether
we produced a reduction chain.
(vect_analyze_scalar_cycles_1): Do not add reduction chains to
LOOP_VINFO_REDUCTIONS.

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

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