From 73264a8d66c00162103e39b46cd388a4f566821c Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Wed, 16 May 2018 18:22:56 +0200 Subject: [PATCH] Remove unused function ipa_free_edge_args_substructures 2018-05-16 Martin Jambor * ipa-prop.c (ipa_free_all_edge_args): Remove. * ipa-prop.h (ipa_free_all_edge_args): Likewise. From-SVN: r260295 --- gcc/ChangeLog | 5 +++++ gcc/ipa-prop.c | 10 ---------- gcc/ipa-prop.h | 1 - 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6390b422f63..8a848124ff7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-05-16 Martin Jambor + + * ipa-prop.c (ipa_free_all_edge_args): Remove. + * ipa-prop.h (ipa_free_all_edge_args): Likewise. + 2018-05-16 Wilco Dijkstra * config/aarch64/aarch64.md (fma4): Change into expand pattern. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 38441cc49bc..19d55cda009 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -3708,16 +3708,6 @@ ipa_check_create_edge_args (void) ipa_vr_hash_table = hash_table::create_ggc (37); } -/* Frees all dynamically allocated structures that the argument info points - to. */ - -void -ipa_free_edge_args_substructures (struct ipa_edge_args *args) -{ - vec_free (args->jump_functions); - *args = ipa_edge_args (); -} - /* Free all ipa_edge structures. */ void diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h index a61e06135e3..dc45cea9c71 100644 --- a/gcc/ipa-prop.h +++ b/gcc/ipa-prop.h @@ -664,7 +664,6 @@ extern GTY(()) vec *ipcp_transformations; void ipa_create_all_node_params (void); void ipa_create_all_edge_args (void); void ipa_check_create_edge_args (void); -void ipa_free_edge_args_substructures (struct ipa_edge_args *); void ipa_free_all_node_params (void); void ipa_free_all_edge_args (void); void ipa_free_all_structures_after_ipa_cp (void); -- 2.30.2