diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 15:35:21 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-24 15:35:21 +0000 |
commit | 7d9f258fdcec6e984c2b942382235b98e9300b1b (patch) | |
tree | 43bacd6846c8b3eb43f0268cb4dce94a7f027c38 /gcc/ipa-ref.h | |
parent | cc0dc61ba53d34053c5998ba909ac6ea62d06024 (diff) | |
download | gcc-7d9f258fdcec6e984c2b942382235b98e9300b1b.tar.gz |
2013-05-24 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/57294
* cgraph.h (ipa_record_stmt_references): Declare.
* cgraphbuild.c (ipa_record_stmt_references): New function.
(build_cgraph_edges): Use ipa_record_stmt_references.
(rebuild_cgraph_edges): Likewise.
(cgraph_rebuild_references): Likewise.
* ipa-prop.c (ipa_modify_call_arguments): Discard references
associated with the old statement and build references from the
newly built statements.
* ipa-ref.c (ipa_remove_stmt_references): New function.
* ipa-ref.h (ipa_remove_stmt_references): Declare.
testsuite/
* gcc.dg/ipa/pr57294.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199299 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-ref.h')
-rw-r--r-- | gcc/ipa-ref.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-ref.h b/gcc/ipa-ref.h index 972e9737f9a..79f60056601 100644 --- a/gcc/ipa-ref.h +++ b/gcc/ipa-ref.h @@ -72,3 +72,4 @@ void ipa_clone_referring (symtab_node, struct ipa_ref_list *); bool ipa_ref_cannot_lead_to_return (struct ipa_ref *); bool ipa_ref_has_aliases_p (struct ipa_ref_list *); struct ipa_ref * ipa_find_reference (symtab_node, symtab_node, gimple); +void ipa_remove_stmt_references (symtab_node, gimple); |