Rebased on top of trunk, minor change to check if loop_vinfo since we now do some slp vectorization for simd_clones. I assume the previous OK still holds. On 30/08/2023 13:54, Richard Biener wrote: > On Wed, 30 Aug 2023, Andre Vieira (lists) wrote: > >> 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. > > OK. > >> 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. >> >