re PR tree-optimization/87974 (ICE in vect_get_vec_def_for_stmt_copy)
authorRichard Biener <rguenther@suse.de>
Wed, 14 Nov 2018 09:19:28 +0000 (09:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 14 Nov 2018 09:19:28 +0000 (09:19 +0000)
commitf711908bf61e39432965db84ed12424cc6f251e1
tree7e348a03b38fec7de949eb377b67eee3e0502318
parentc4071191f4d20d25389181b90c0a24f254a47b87
re PR tree-optimization/87974 (ICE in vect_get_vec_def_for_stmt_copy)

2018-11-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87974
* tree-vect-loop.c (vectorizable_reduction): When computing
the vectorized reduction PHI vector type ignore constant
and external defs.

* g++.dg/opt/pr87974.C: New testcase.

From-SVN: r266099
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr87974.C [new file with mode: 0644]
gcc/tree-vect-loop.c