Commit 9477eb38 by Jan Hubicka Committed by Jan Hubicka

tree-inline.c (fold_marked_statements): Update operand caches and EH after folding

	* tree-inline.c (fold_marked_statements): Update operand caches
	and EH after folding

From-SVN: r120477
parent f17facac
2007-01-04 Jan Hubicka <jh@suse.cz>
* tree-inline.c (fold_marked_statements): Update operand caches
and EH after folding
2007-01-04 Ian Lance Taylor <iant@google.com> 2007-01-04 Ian Lance Taylor <iant@google.com>
* c-common.c (check_function_nonnull): Whitespace fix. * c-common.c (check_function_nonnull): Whitespace fix.
......
...@@ -2597,7 +2597,15 @@ fold_marked_statements (int first, struct pointer_set_t *statements) ...@@ -2597,7 +2597,15 @@ fold_marked_statements (int first, struct pointer_set_t *statements)
for (bsi = bsi_start (BASIC_BLOCK (first)); for (bsi = bsi_start (BASIC_BLOCK (first));
!bsi_end_p (bsi); bsi_next (&bsi)) !bsi_end_p (bsi); bsi_next (&bsi))
if (pointer_set_contains (statements, bsi_stmt (bsi))) if (pointer_set_contains (statements, bsi_stmt (bsi)))
fold_stmt (bsi_stmt_ptr (bsi)); {
tree old_stmt = bsi_stmt (bsi);
if (fold_stmt (bsi_stmt_ptr (bsi)))
{
update_stmt (bsi_stmt (bsi));
if (maybe_clean_or_replace_eh_stmt (old_stmt, bsi_stmt (bsi)))
tree_purge_dead_eh_edges (BASIC_BLOCK (first));
}
}
} }
} }
......
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