diff options
author | Richard Guenther <rguenther@suse.de> | 2011-04-08 13:22:32 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-04-08 13:22:32 +0000 |
commit | 0f8c63cc10c27905f6d6fa553d3be08a416b2e1f (patch) | |
tree | 35952a70f683e580d7b134e3b637e28c5ab22fa8 /gcc/tree-ssa-operands.c | |
parent | 5e5a425e73a86f3edbbc1339760e3d8153966389 (diff) | |
download | gcc-0f8c63cc10c27905f6d6fa553d3be08a416b2e1f.zip gcc-0f8c63cc10c27905f6d6fa553d3be08a416b2e1f.tar.gz gcc-0f8c63cc10c27905f6d6fa553d3be08a416b2e1f.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 7e2600d..57f443f 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -1134,6 +1134,12 @@ update_stmt_operands (gimple stmt) 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)); build_ssa_operands (stmt); gimple_set_modified (stmt, false); |