Commit 0f8c63cc by Richard Guenther Committed by Richard Biener

gimple.c (gimple_set_modified): Do not queue calls to MODIFIED_NORETURN_CALLS here ...

2011-04-08  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gimple_set_modified): Do not queue calls to
	MODIFIED_NORETURN_CALLS here ...
	* tree-ssa-operands.c (update_stmt_operands): ... but here.

From-SVN: r172182
parent 5e5a425e
2011-04-08 Richard Guenther <rguenther@suse.de> 2011-04-08 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_set_modified): Do not queue calls to
MODIFIED_NORETURN_CALLS here ...
* tree-ssa-operands.c (update_stmt_operands): ... but here.
2011-04-08 Richard Guenther <rguenther@suse.de>
PR lto/48467 PR lto/48467
* toplev.c (lang_dependent_init): Do not open asm_out_file * toplev.c (lang_dependent_init): Do not open asm_out_file
in WPA mode, nor perform debug machinery initialization. in WPA mode, nor perform debug machinery initialization.
......
...@@ -2254,15 +2254,7 @@ void ...@@ -2254,15 +2254,7 @@ void
gimple_set_modified (gimple s, bool modifiedp) gimple_set_modified (gimple s, bool modifiedp)
{ {
if (gimple_has_ops (s)) if (gimple_has_ops (s))
{ s->gsbase.modified = (unsigned) modifiedp;
s->gsbase.modified = (unsigned) modifiedp;
if (modifiedp
&& cfun->gimple_df
&& is_gimple_call (s)
&& gimple_call_noreturn_p (s))
VEC_safe_push (gimple, gc, MODIFIED_NORETURN_CALLS (cfun), s);
}
} }
......
...@@ -1134,6 +1134,12 @@ update_stmt_operands (gimple stmt) ...@@ -1134,6 +1134,12 @@ update_stmt_operands (gimple stmt)
timevar_push (TV_TREE_OPS); timevar_push (TV_TREE_OPS);
/* If the stmt is a noreturn call queue it to be processed by
split_bbs_on_noreturn_calls during cfg cleanup. */
if (is_gimple_call (stmt)
&& gimple_call_noreturn_p (stmt))
VEC_safe_push (gimple, gc, MODIFIED_NORETURN_CALLS (cfun), stmt);
gcc_assert (gimple_modified_p (stmt)); gcc_assert (gimple_modified_p (stmt));
build_ssa_operands (stmt); build_ssa_operands (stmt);
gimple_set_modified (stmt, false); gimple_set_modified (stmt, false);
......
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