Commit e207c079 by Richard Biener Committed by Richard Biener

re PR tree-optimization/83685 (ICE: SSA corruption)

2018-01-08  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/83685
	* tree-ssa-pre.c (create_expression_by_pieces): Do not insert
	references to abnormals.

	* gcc.dg/torture/pr83685.c: New testcase.

From-SVN: r256339
parent 131a0e78
2018-01-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/83685
* tree-ssa-pre.c (create_expression_by_pieces): Do not insert
references to abnormals.
2018-01-08 Richard Biener <rguenther@suse.de>
PR lto/83719
* dwarf2out.c (output_indirect_strings): Handle empty
skeleton_debug_str_hash.
......
2018-01-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/83685
* gcc.dg/torture/pr83685.c: New testcase.
2018-01-08 Richard Biener <rguenther@suse.de>
PR lto/83719
* gcc.dg/lto/pr83719_0.c: New testcase.
......
/* { dg-do compile } */
int _setjmp (void *);
void foo (int);
void
bar (int e, int b, char c, void *d)
{
while (b)
{
if (_setjmp (d))
foo (e);
if (c)
{
e--;
foo (0);
}
e++;
}
}
......@@ -2697,6 +2697,8 @@ create_expression_by_pieces (basic_block block, pre_expr expr,
that value numbering saw through. */
case NAME:
folded = PRE_EXPR_NAME (expr);
if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (folded))
return NULL_TREE;
if (useless_type_conversion_p (exprtype, TREE_TYPE (folded)))
return folded;
break;
......
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