https://gcc.gnu.org/g:a1126dd1b7b0ba051d7d62de2c12b7affa2ecc34

commit a1126dd1b7b0ba051d7d62de2c12b7affa2ecc34
Author: Richard Biener <rguent...@suse.de>
Date:   Fri Mar 1 14:56:01 2024 +0100

    Place easily identifyable assert insead of SIGSEV
    
    Better identification of known ICEs.
    
            * tree-vect-stmts.cc (vect_is_simple_use): Assert instead of
            SIGSEV.

Diff:
---
 gcc/tree-vect-stmts.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 8fef72cb9072..ca81957def06 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -14009,6 +14009,10 @@ vect_is_simple_use (vec_info *vinfo, stmt_vec_info 
stmt, slp_tree slp_node,
       *vectype = SLP_TREE_VECTYPE (child);
       if (SLP_TREE_DEF_TYPE (child) == vect_internal_def)
        {
+         /* ???  Instead of crashing, easier to identify.  But we
+            need to think what to do with internal defs of VEC_PERM
+            kind here.  */
+         gcc_assert (SLP_TREE_REPRESENTATIVE (child));
          *op = gimple_get_lhs (SLP_TREE_REPRESENTATIVE (child)->stmt);
          return vect_is_simple_use (*op, vinfo, dt, def_stmt_info_out);
        }

Reply via email to