aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorAndre Vieira <andre.simoesdiasvieira@arm.com>2024-12-11 11:50:22 +0000
committerTamar Christina <tamar.christina@arm.com>2024-12-11 11:58:02 +0000
commit561ef7c8477ba58ea64de259af9c2d0870afd9d4 (patch)
treedf35879bc189ca77b8a23ae8ae99e5ec3074b027 /gcc/expr.cc
parent9403b035befe3537c343f7430e321468c0f2c28b (diff)
downloadgcc-561ef7c8477ba58ea64de259af9c2d0870afd9d4.zip
gcc-561ef7c8477ba58ea64de259af9c2d0870afd9d4.tar.gz
gcc-561ef7c8477ba58ea64de259af9c2d0870afd9d4.tar.bz2
middle-end: Pass stmt_vec_info to TARGET_SIMD_CLONE_USABLE [PR96342]
This patch adds stmt_vec_info to TARGET_SIMD_CLONE_USABLE to make sure the target can reject a simd_clone based on the vector mode it is using. This is needed because for VLS SVE vectorization the vectorizer accepts Advanced SIMD simd clones when vectorizing using SVE types because the simdlens might match. This will cause type errors later on. Other targets do not currently need to use this argument. gcc/ChangeLog: PR target/96342 * target.def (TARGET_SIMD_CLONE_USABLE): Add argument. * tree-vect-stmts.cc (vectorizable_simd_clone_call): Pass stmt_info to call TARGET_SIMD_CLONE_USABLE. * config/aarch64/aarch64.cc (aarch64_simd_clone_usable): Add argument and use it to reject the use of SVE simd clones with Advanced SIMD modes. * config/gcn/gcn.cc (gcn_simd_clone_usable): Add unused argument. * config/i386/i386.cc (ix86_simd_clone_usable): Likewise. * doc/tm.texi: Regenerate Co-authored-by: Victor Do Nascimento <victor.donascimento@arm.com> Co-authored-by: Tamar Christina <tamar.christina@arm.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions