tree-optimization/103800 - sanity check more PHI vectorization
authorRichard Biener <rguenther@suse.de>
Tue, 4 Jan 2022 14:49:50 +0000 (15:49 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 4 Jan 2022 15:51:53 +0000 (16:51 +0100)
commit88e861655b3e59bc982ba22cd6e2e7348efae866
tree3ab2468ca51be098bd4a4791facfb02ccf68f725
parent790854ea7670f11c14d431c102a49181d2915965
tree-optimization/103800 - sanity check more PHI vectorization

Bool pattern detection doesn't really handle PHIs well so we have
to be prepared for mismatched vector types in more cases than
originally thought.

2022-01-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103800
* tree-vect-loop.c (vectorizable_phi): Remove assert and
expand comment.

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