From: Richard Biener Date: Wed, 16 Oct 2019 10:05:21 +0000 (+0000) Subject: re PR tree-optimization/92119 (ICE: SIGSEGV in contains_struct_check (tree.h:3380... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf78ed91a445d188e4368adc30dd5c32d973ed6e;p=gcc.git re PR tree-optimization/92119 (ICE: SIGSEGV in contains_struct_check (tree.h:3380) with -Os -fno-tree-dce -fno-tree-dse -ftree-slp-vectorize) 2019-10-16 Richard Biener PR tree-optimization/92119 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard against missing bswap lhs. From-SVN: r277057 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 072eb8ce8bd..37f42cf349f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-10-16 Richard Biener + + PR tree-optimization/92119 + * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard + against missing bswap lhs. + 2019-10-16 Richard Sandiford PR middle-end/92033 diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index f9c74087893..385482ffb98 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -2199,7 +2199,8 @@ vect_recog_rotate_pattern (stmt_vec_info stmt_vinfo, tree *type_out) lhs = gimple_call_lhs (last_stmt); oprnd0 = gimple_call_arg (last_stmt, 0); type = TREE_TYPE (oprnd0); - if (TYPE_PRECISION (TREE_TYPE (lhs)) != 16 + if (!lhs + || TYPE_PRECISION (TREE_TYPE (lhs)) != 16 || TYPE_PRECISION (type) <= 16 || TREE_CODE (oprnd0) != SSA_NAME || BITS_PER_UNIT != 8