tree-optimization/95297 - handle scalar shift arg for SLP invariant vectype
authorRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 09:14:03 +0000 (11:14 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 11:11:41 +0000 (13:11 +0200)
commitd31694544d2d805151899ab0a0bc654767035ad6
treebd053db552a082da13b6b1e617410b90177660a6
parenta0c623f58198d3c8f767a181574537720386b468
tree-optimization/95297 - handle scalar shift arg for SLP invariant vectype

This skips invariant vector type setting for a scalar shift argument.

2020-05-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95297
* tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
skip updating operand 1 vector type.

* g++.dg/vect/pr95297.cc: New testcase.
* g++.dg/vect/pr95290.cc: Likewise.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/pr95290.cc [new file with mode: 0644]
gcc/testsuite/g++.dg/vect/pr95297.cc [new file with mode: 0644]
gcc/tree-vect-stmts.c