]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: don't allow fully masked loops with non-masked simd clones [PR 110485]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 19 Oct 2023 17:28:12 +0000 (18:28 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 19 Oct 2023 17:30:25 +0000 (18:30 +0100)
commit8b704ed0b8f35ec1a57e70bd8e6913ba0e9d1f24
tree2f55086b9e5933ea220d524fdb2f0c406f74d131
parentc9ce846763c3d220c754ac0a327e275ac00a83e1
vect: don't allow fully masked loops with non-masked simd clones [PR 110485]

When analyzing a loop and choosing a simdclone to use it is possible to choose
a simdclone that cannot be used 'inbranch' for a loop that can use partial
vectors.  This may lead to the vectorizer deciding to use partial vectors which
are not supported for notinbranch simd clones.  This patch fixes that by
disabling the use of partial vectors once a notinbranch simd clone has been
selected.

gcc/ChangeLog:

PR tree-optimization/110485
* tree-vect-stmts.cc (vectorizable_simd_clone_call): Disable partial
vectors usage if a notinbranch simdclone has been selected.

gcc/testsuite/ChangeLog:

* gcc.dg/gomp/pr110485.c: New test.
gcc/testsuite/gcc.dg/gomp/pr110485.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc