Commit bf78ed91 by Richard Biener Committed by Richard Biener

re PR tree-optimization/92119 (ICE: SIGSEGV in contains_struct_check…

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  <rguenther@suse.de>

	PR tree-optimization/92119
	* tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
	against missing bswap lhs.

From-SVN: r277057
parent 96eb7d7a
2019-10-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/92119
* tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
against missing bswap lhs.
2019-10-16 Richard Sandiford <richard.sandiford@arm.com> 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
PR middle-end/92033 PR middle-end/92033
......
...@@ -2199,7 +2199,8 @@ vect_recog_rotate_pattern (stmt_vec_info stmt_vinfo, tree *type_out) ...@@ -2199,7 +2199,8 @@ vect_recog_rotate_pattern (stmt_vec_info stmt_vinfo, tree *type_out)
lhs = gimple_call_lhs (last_stmt); lhs = gimple_call_lhs (last_stmt);
oprnd0 = gimple_call_arg (last_stmt, 0); oprnd0 = gimple_call_arg (last_stmt, 0);
type = TREE_TYPE (oprnd0); type = TREE_TYPE (oprnd0);
if (TYPE_PRECISION (TREE_TYPE (lhs)) != 16 if (!lhs
|| TYPE_PRECISION (TREE_TYPE (lhs)) != 16
|| TYPE_PRECISION (type) <= 16 || TYPE_PRECISION (type) <= 16
|| TREE_CODE (oprnd0) != SSA_NAME || TREE_CODE (oprnd0) != SSA_NAME
|| BITS_PER_UNIT != 8 || BITS_PER_UNIT != 8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment