re PR tree-optimization/92173 (ICE in optab_for_tree_code, at optabs-tree.c:81)
authorRichard Biener <rguenther@suse.de>
Tue, 22 Oct 2019 13:08:53 +0000 (13:08 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 Oct 2019 13:08:53 +0000 (13:08 +0000)
commit6c7b0df8029d01e05577668333660d0bc58a3023
treec20bf7b5f2e7182ea19563306405013ba0a1a803
parent92781ff1da896b2f92b1dcc06953be493371bf21
re PR tree-optimization/92173 (ICE in optab_for_tree_code, at optabs-tree.c:81)

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

PR tree-optimization/92173
* tree-vect-loop.c (vectorizable_reduction): If
vect_transform_reduction cannot handle code-generation try without
the single-def-use-cycle optimization.  Pass optab_vector to
optab_for_tree_code to get vector shifts as that's what we'd
generate.

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

From-SVN: r277288
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vshift-5.c
gcc/tree-vect-slp.c
gcc/tree-vect-stmts.c