diff options
author | Richard Biener <rguenther@suse.de> | 2025-03-11 08:29:05 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-03-11 08:30:38 +0100 |
commit | c39b0d4faedd432c85ba5c737ebe9d41aad7dca1 (patch) | |
tree | 1f6ae0d1e8818a86a32a36234001a456a73c5583 | |
parent | 86c692c51c356958781a1d6788dd34223deac9ad (diff) | |
download | gcc-c39b0d4faedd432c85ba5c737ebe9d41aad7dca1.zip gcc-c39b0d4faedd432c85ba5c737ebe9d41aad7dca1.tar.gz gcc-c39b0d4faedd432c85ba5c737ebe9d41aad7dca1.tar.bz2 |
tree-optimization/119166 - ICE with --param vect-force-slp=0
The following fixes a missing guard on slp_node in get_load_store_type.
PR tree-optimization/119166
* tree-vect-stmts.cc (get_load_store_type): Guard SLP tree
access.
-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 743631f..f894787 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -2708,7 +2708,7 @@ get_load_store_type (vec_info *vinfo, stmt_vec_info stmt_info, such only the first load in the group is aligned, the rest are not. Because of this the permutes may break the alignment requirements that have been set, and as such we should for now, reject them. */ - if (SLP_TREE_LOAD_PERMUTATION (slp_node).exists ()) + if (slp_node && SLP_TREE_LOAD_PERMUTATION (slp_node).exists ()) { if (dump_enabled_p ()) dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location, |