tree-optimization/95273 - more vectorizable_shift massaging
authorRichard Biener <rguenther@suse.de>
Thu, 28 May 2020 08:27:48 +0000 (10:27 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 28 May 2020 09:54:50 +0000 (11:54 +0200)
commit09df85393ce5501a28359d159670fd05c4d70abf
treeb5125015fe545cbfcc2d80521283d8a69823abfa
parentdd019ef07358602a444f3e63f848aaece5c280f4
tree-optimization/95273 - more vectorizable_shift massaging

Covering all bases in vectorizable_shift is hard - this makes sure
to appropriately handle the case of PR95356 without breaking others.

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

PR tree-optimization/95273
PR tree-optimization/95356
* tree-vect-stmts.c (vectorizable_shift): Adjust when and to
what we set the vector type of the shift operand SLP node
again.

* gcc.target/i386/pr95356.c: New testcase.
gcc/testsuite/gcc.target/i386/pr95356.c [new file with mode: 0644]
gcc/tree-vect-stmts.c