]> git.ipfire.org Git - thirdparty/gcc.git/commit
Reject single lane vector types for SLP build
authorRichard Biener <rguenther@suse.de>
Thu, 10 Jul 2025 11:04:00 +0000 (13:04 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 17 Jul 2025 06:26:40 +0000 (08:26 +0200)
commit246ecf81612518196f4aa45fe96f85831fe408ff
treec3bf53ee130970e808eb4edb536b670e335bb3f6
parent9af57c471087a3a1b87621bce1208d6c77ba2a4a
Reject single lane vector types for SLP build

The following makes us never consider vector(1) T types for
vectorization and ensures this during SLP build.  This is a
long-standing issue for BB vectorization and when we remove
early loop vector type setting we lose the single place we have
that rejects this for loops.

Once we implement partial loop vectorization we should revisit
this, but then use the original scalar types for the unvectorized
parts.

* tree-vect-slp.cc (vect_build_slp_tree_1): Reject
single-lane vector types.

* gcc.dg/vect/bb-slp-39.c: Adjust.
gcc/testsuite/gcc.dg/vect/bb-slp-39.c
gcc/tree-vect-slp.cc