tree-optimization/95271 - fix bswap vectorization invariant SLP type
authorRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 08:36:39 +0000 (10:36 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 11:12:20 +0000 (13:12 +0200)
commitc0e27f72358794692e367363940c6383e9ad1e45
treed6d197914bff904677925e5257a14b2da108745a
parentd31694544d2d805151899ab0a0bc654767035ad6
tree-optimization/95271 - fix bswap vectorization invariant SLP type

This properly updates invariant SLP nodes vector types for bswap
vectorization.

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

PR tree-optimization/95271
* tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
children vector type.
(vectorizable_call): Pass down slp ops.

* gcc.dg/vect/bb-slp-pr95271.c: New testcase.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/bb-slp-pr95271.c [new file with mode: 0644]
gcc/tree-vect-stmts.c