Commit 4642ed29 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/51481 (ice: dead STMT in EH table)

2011-12-13  Richard Guenther  <rguenther@suse.de>

	PR middle-end/51481
	* tree-cfg.c (replace_uses_by): Pass proper arguments to
	maybe_clean_or_replace_eh_stmt.

From-SVN: r182280
parent a5c3d18c
2011-12-13 Richard Guenther <rguenther@suse.de>
PR middle-end/51481
* tree-cfg.c (replace_uses_by): Pass proper arguments to
maybe_clean_or_replace_eh_stmt.
2011-12-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/51519
* ipa-inline.c (edge_badness): Use edge growth in non-guessed
branch probability case as well.
......@@ -1601,6 +1601,7 @@ replace_uses_by (tree name, tree val)
if (gimple_code (stmt) != GIMPLE_PHI)
{
gimple_stmt_iterator gsi = gsi_for_stmt (stmt);
gimple orig_stmt = stmt;
size_t i;
fold_stmt (&gsi);
......@@ -1619,7 +1620,7 @@ replace_uses_by (tree name, tree val)
recompute_tree_invariant_for_addr_expr (op);
}
maybe_clean_or_replace_eh_stmt (stmt, stmt);
maybe_clean_or_replace_eh_stmt (orig_stmt, stmt);
update_stmt (stmt);
}
}
......
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