aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-07-25 08:34:20 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:56 +0200
commitab3b0560320b1124a69cf19737fc8ba5861fc281 (patch)
treea8d68d114388619bd1b0cfc0f4b80f6c9af7ff17
parent9d6e3fe0d83ab7165e2bb1e0f3e578d6bd66f854 (diff)
downloadgcc-ab3b0560320b1124a69cf19737fc8ba5861fc281.zip
gcc-ab3b0560320b1124a69cf19737fc8ba5861fc281.tar.gz
gcc-ab3b0560320b1124a69cf19737fc8ba5861fc281.tar.bz2
tree-optimization/116081 - typedef vs. non-typedef in vectorization
The following addresses a behavioral difference in vector type analysis for typedef vs. non-typedef. It doesn't fix the issue at hand but avoids a spurious difference in the dumps. PR tree-optimization/116081 * tree-vect-stmts.cc (vect_get_vector_types_for_stmt): Properly compare types.
-rw-r--r--gcc/tree-vect-stmts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index d717704..20cae83 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -14903,7 +14903,7 @@ vect_get_vector_types_for_stmt (vec_info *vinfo, stmt_vec_info stmt_info,
vector size per vectorization). */
scalar_type = vect_get_smallest_scalar_type (stmt_info,
TREE_TYPE (vectype));
- if (scalar_type != TREE_TYPE (vectype))
+ if (!types_compatible_p (scalar_type, TREE_TYPE (vectype)))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_NOTE, vect_location,