diff options
author | Richard Biener <rguenther@suse.de> | 2025-07-31 14:56:27 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2025-07-31 16:07:16 +0200 |
commit | a4b5618782658ebe420c69ad939275d16ce76121 (patch) | |
tree | f3d8a95e75947e1ee95bd0d38df72fb5e7f67ec8 /gcc | |
parent | 040a79586d40a1d8bc6f048a594793bd744a7aae (diff) | |
download | gcc-a4b5618782658ebe420c69ad939275d16ce76121.zip gcc-a4b5618782658ebe420c69ad939275d16ce76121.tar.gz gcc-a4b5618782658ebe420c69ad939275d16ce76121.tar.bz2 |
Fixup wrong change to get_group_load_store_type
The following fixes up the r16-2593-g6ac78317aa6adf change which
made us match up a scalar with a vector type. Oops.
Noticed when removing the gather/scatter pattern that creates the
IFNs early.
* tree-vect-stmts.cc (get_group_load_store_type): Properly
compare the scalar type of the gather/scatter offset to
the offset vector component type.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-vect-stmts.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 7fe9996..3fa4585 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -2007,7 +2007,7 @@ get_group_load_store_type (vec_info *vinfo, stmt_vec_info stmt_info, if (GATHER_SCATTER_IFN_P (*gs_info) && !is_gimple_call (stmt_info->stmt) && !tree_nop_conversion_p (TREE_TYPE (gs_info->offset), - offset_vectype)) + TREE_TYPE (offset_vectype))) { if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, |