]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/gimple-iterator.c
gimple-iterator.c (gsi_start_edge): New function.
authorMartin Jambor <mjambor@suse.cz>
Thu, 17 Apr 2014 13:53:59 +0000 (15:53 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 17 Apr 2014 13:53:59 +0000 (15:53 +0200)
commit104cb50bd13ccb8ed1934ef3a8f90ec9e4e1c1de
treeb255138251190ed1adfba46943629741890a091d
parentb94970bc41f7b2c6ab28d52493f95efcf2fa97de
gimple-iterator.c (gsi_start_edge): New function.

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.

From-SVN: r209487
gcc/ChangeLog
gcc/gimple-iterator.c
gcc/gimple-iterator.h
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt34.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt34_pkg.ads [new file with mode: 0644]
gcc/tree-sra.c