diff options
author | Richard Biener <rguenther@suse.de> | 2021-08-17 15:50:31 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-08-17 18:54:24 +0200 |
commit | e7e17be3be3d43640a9a4a33d59315dec69fdda4 (patch) | |
tree | 1200fa8df167b20f99c29bbf2a69f7dadbb63181 /gcc/tree-vect-stmts.c | |
parent | 817766f4dd2f6f3fdea2c4e6e22358b0b6b06d0d (diff) | |
download | gcc-e7e17be3be3d43640a9a4a33d59315dec69fdda4.zip gcc-e7e17be3be3d43640a9a4a33d59315dec69fdda4.tar.gz gcc-e7e17be3be3d43640a9a4a33d59315dec69fdda4.tar.bz2 |
Fall back to masked_gather_load/masked_scatter_store
This adds a fallback to the masked_ variants for gather_load
and scatter_store if the latter are not available.
2021-08-17 Richard Biener <rguenther@suse.de>
* optabs-query.c (supports_vec_gather_load_p): Also check
for masked optabs.
(supports_vec_scatter_store_p): Likewise.
* tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
back to masked variants if non-masked are not supported.
* tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
When we need to use masked gather/scatter but do not have
a mask set up a constant true one.
* tree-vect-stmts.c (vect_check_scalar_mask): Also allow
non-SSA_NAME masks.
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index cc6c091..4e0b2ad 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -2510,14 +2510,6 @@ vect_check_scalar_mask (vec_info *vinfo, stmt_vec_info stmt_info, return false; } - if (TREE_CODE (*mask) != SSA_NAME) - { - if (dump_enabled_p ()) - dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, - "mask argument is not an SSA name.\n"); - return false; - } - /* If the caller is not prepared for adjusting an external/constant SLP mask vector type fail. */ if (slp_node |