re PR tree-optimization/91665 (ICE in build_vector_from_val, at tree.c:1904)
authorJakub Jelinek <jakub@redhat.com>
Sat, 7 Sep 2019 09:52:01 +0000 (11:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 7 Sep 2019 09:52:01 +0000 (11:52 +0200)
commit44a06a709565805d68994b65d871565a07ebf73e
tree0403de63771e03f52c106164c651f886815adc0a
parent8b2d8beb9fcbd9196b562b17a21c892ff062aba8
re PR tree-optimization/91665 (ICE in build_vector_from_val, at tree.c:1904)

PR tree-optimization/91665
* tree-vect-loop.c (vectorizable_reduction): Punt if base has type
incompatible with the type of PHI result.

* gcc.dg/vect/pr91665.c: New test.

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