[Bug tree-optimization/122776] vectorizable_simd_clone_call looks at LOOP_VINFO_FULLY_MASKED_P during analysis
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 4 14:30:44 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122776
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:cea34ac07e3bd74086f854dd43afb29b4940d8de
commit r16-5888-gcea34ac07e3bd74086f854dd43afb29b4940d8de
Author: Richard Biener <rguenther@suse.de>
Date: Sun Nov 23 14:01:03 2025 +0100
Select both inbranch and notinbranch clone during SIMD call analysis
The following recors both a possibly notinbranch and an inbranch
SIMD clone during analysis so that we can properly handle the
late decision on loop masking. Recording of linear-clause data
from analysis is extended to cover linear-clause arguments from
both clones.
This also fixes AVX512 masked loop code generation in line with
the previous fixes.
PR tree-optimization/122776
* tree-vectorizer.h (vect_simd_clone_data::clone,
vect_simd_clone_data::clone_inbranch): New fields for
the two selected clones.
* tree-vect-stmts.cc (vectorizable_simd_clone_call): Record
both a possibly notinbranch and a inbranch clone. Delay
the choice between both to code generation based on
LOOP_VINFO_FULLY_MASKED_P.
* gcc.dg/vect/vect-simd-clone-24.c: New testcase.
* gcc.dg/gomp/pr110485.c: Adjust.
More information about the Gcc-bugs
mailing list