diff options
author | glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 09:32:21 +0000 |
---|---|---|
committer | glisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 09:32:21 +0000 |
commit | 258bd648e6065446a18fe099309116cf658c4421 (patch) | |
tree | 773cf046c0dfd55437a213c2c0d6c24b378ad71e /gcc/gimple-iterator.h | |
parent | 46caa32dc6684dd49fc9d0be81e57eb5a9c89067 (diff) | |
download | gcc-258bd648e6065446a18fe099309116cf658c4421.tar.gz |
2014-08-21 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/62112
gcc/
* gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
* gimple-iterator.h (gsi_replace): Return bool.
* tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
moved from ref_may_alias_global_p.
(ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
New overloads.
(ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
(stmt_kills_ref_p_1): Rename...
(stmt_kills_ref_p): ... to this.
* tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
stmt_kills_ref_p): Declare.
* tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
Move the self-assignment case...
(dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
gcc/testsuite/
* gcc.dg/tree-ssa/pr62112-1.c: New file.
* gcc.dg/tree-ssa/pr62112-2.c: Likewise.
* gcc.c-torture/execute/pr35472.c: Add noclone attribute.
* gcc.c-torture/execute/20071219-1.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214262 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-iterator.h')
-rw-r--r-- | gcc/gimple-iterator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-iterator.h b/gcc/gimple-iterator.h index 47168b9d646..b117b4b78d5 100644 --- a/gcc/gimple-iterator.h +++ b/gcc/gimple-iterator.h @@ -58,7 +58,7 @@ extern void gsi_insert_seq_after (gimple_stmt_iterator *, gimple_seq, extern gimple_seq gsi_split_seq_after (gimple_stmt_iterator); extern void gsi_set_stmt (gimple_stmt_iterator *, gimple); extern void gsi_split_seq_before (gimple_stmt_iterator *, gimple_seq *); -extern void gsi_replace (gimple_stmt_iterator *, gimple, bool); +extern bool gsi_replace (gimple_stmt_iterator *, gimple, bool); extern void gsi_replace_with_seq (gimple_stmt_iterator *, gimple_seq, bool); extern void gsi_insert_before_without_update (gimple_stmt_iterator *, gimple, enum gsi_iterator_update); |