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 11:51:52 +0000 (11:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 Oct 2019 11:51:52 +0000 (11:51 +0000)
commit9107d6526b938eba8168025c0d90d06ad3634e69
treef68ece130b15ef7fd87ff67e14398ae09cce0d0b
parenteefb1290536f9366ba0493ee1109e52d97ef9881
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: r277286
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr92173.c [new file with mode: 0644]
gcc/tree-vect-loop.c