re PR tree-optimization/92252 (ICE: Segmentation fault (in vect_stmt_to_vectorize))
authorRichard Biener <rguenther@suse.de>
Mon, 28 Oct 2019 13:43:49 +0000 (13:43 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Oct 2019 13:43:49 +0000 (13:43 +0000)
commit96d9d1620f28517de0464ab636662d9a35a92993
tree8997511f65dcbe94251994abbd116166e15e5bc4
parent97c6bea819ec0a773041308e62a7c05c33f093b0
re PR tree-optimization/92252 (ICE: Segmentation fault (in vect_stmt_to_vectorize))

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

PR tree-optimization/92252
* tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
STMT_VINFO_REDUC_IDX when swapping operands.

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

From-SVN: r277517
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr92252.c [new file with mode: 0644]
gcc/tree-vect-slp.c