re PR tree-optimization/92371 (ICE in info_for_reduction, at tree-vect-loop.c:4106)
authorRichard Biener <rguenther@suse.de>
Tue, 5 Nov 2019 16:12:07 +0000 (16:12 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 5 Nov 2019 16:12:07 +0000 (16:12 +0000)
commit02bf7e6fa219f939b3225c54fbe8bab2133b1aeb
treef478ba0da318ede08b7f8bdd8b92bcb5c399f550
parentc6a7be9bdadf67dcc5496222129acadbb2dd0610
re PR tree-optimization/92371 (ICE in info_for_reduction, at tree-vect-loop.c:4106)

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

PR tree-optimization/92371
* tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
on the original stmt of live stmts in the chain.
(vectorizable_live_operation): Look at the original stmt when
checking STMT_VINFO_REDUC_DEF.

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

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