diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 13:53:59 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 13:53:59 +0000 |
commit | 1605ba4b430d4327259804993a2c18529037afe9 (patch) | |
tree | b255138251190ed1adfba46943629741890a091d /gcc/gimple-iterator.c | |
parent | bd5e1815d956634ba4558438914b33382f1fe47f (diff) | |
download | gcc-1605ba4b430d4327259804993a2c18529037afe9.tar.gz |
2014-04-17 Martin Jambor <mjambor@suse.cz>
* gimple-iterator.c (gsi_start_edge): New function.
* gimple-iterator.h (gsi_start_edge): Declare.
* tree-sra.c (single_non_eh_succ): New function.
(disqualify_ops_if_throwing_stmt): Renamed to
disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
having one non-EH successor BB.
(sra_modify_expr): If stmt ends bb, use single non-EH successor to
generate loads into replacements.
(sra_modify_assign): Likewise and and also use the simple path for
such statements.
(sra_modify_function_body): Commit statements on edges.
testsuite/
* gnat.dg/opt34.adb: New.
* gnat.dg/opt34_pkg.ads: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209487 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-iterator.c')
-rw-r--r-- | gcc/gimple-iterator.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gimple-iterator.c b/gcc/gimple-iterator.c index 1cfeb731ec5..8a1ec53a765 100644 --- a/gcc/gimple-iterator.c +++ b/gcc/gimple-iterator.c @@ -689,6 +689,15 @@ gsi_insert_seq_on_edge (edge e, gimple_seq seq) gimple_seq_add_seq (&PENDING_STMT (e), seq); } +/* Return a new iterator pointing to the first statement in sequence of + statements on edge E. Such statements need to be subsequently moved into a + basic block by calling gsi_commit_edge_inserts. */ + +gimple_stmt_iterator +gsi_start_edge (edge e) +{ + return gsi_start (PENDING_STMT (e)); +} /* Insert the statement pointed-to by GSI into edge E. Every attempt is made to place the statement in an existing basic block, but |