re PR tree-optimization/87967 (ICE in slpeel_duplicate_current_defs_from_edges)
authorRichard Biener <rguenther@suse.de>
Tue, 13 Nov 2018 13:50:18 +0000 (13:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 13 Nov 2018 13:50:18 +0000 (13:50 +0000)
commita28dfaafc5afd06419408048b664a843b2739086
tree6563558266bbba6d4c4a91b662ff78bc96b85921
parenta277ca89ac37a0da1f8e6a92fc3b591e2385dd77
re PR tree-optimization/87967 (ICE in slpeel_duplicate_current_defs_from_edges)

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

PR tree-optimization/87967
* tree-vect-loop.c (vect_transform_loop): Also copy PHIs
for constants for the scalar loop.

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

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