re PR tree-optimization/92241 (ice in vect_mark_pattern_st mts, at tree-vect-patterns...
authorRichard Biener <rguenther@suse.de>
Mon, 28 Oct 2019 13:42:03 +0000 (13:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Oct 2019 13:42:03 +0000 (13:42 +0000)
commit97c6bea819ec0a773041308e62a7c05c33f093b0
treefd82c1940beb67c5d5fae3fcd85d1f4ef7a94fc8
parent14c835a01ceac44e685589489b46ffaabd034177
re PR tree-optimization/92241 (ice in vect_mark_pattern_st mts, at tree-vect-patterns.c:5175)

2019-10-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92241
* tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
we failed to update the reduction index do not use the pattern
stmts for the reduction chain.
(vectorizable_reduction): When the reduction chain is corrupt,
fail.
* tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
fail to update the reduction chain.

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

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