aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-01-10 15:37:55 +0100
committerMartin Liska <marxin@gcc.gnu.org>2017-01-10 14:37:55 +0000
commit3746a4b2bc625d48a8178b247cace162e62a32f1 (patch)
tree7e2dccc9c5202161bac5b22e4ef4690467f1bdad /gcc/ipa-icf.h
parent26b67e383f4b1df812cd7ba33de43451aff883ba (diff)
downloadgcc-3746a4b2bc625d48a8178b247cace162e62a32f1.zip
gcc-3746a4b2bc625d48a8178b247cace162e62a32f1.tar.gz
gcc-3746a4b2bc625d48a8178b247cace162e62a32f1.tar.bz2
Revert m_classes_vec introduction.
2017-01-10 Martin Liska <mliska@suse.cz> * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove usage of m_classes_vec. (sem_item_optimizer::~sem_item_optimizer): Likewise. (sem_item_optimizer::get_group_by_hash): Likewise. (sem_item_optimizer::subdivide_classes_by_equality): Likewise. (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise. (sem_item_optimizer::verify_classes): Likewise. (sem_item_optimizer::process_cong_reduction): Likewise. (sem_item_optimizer::dump_cong_classes): Likewise. (sem_item_optimizer::merge_classes): Likewise. * ipa-icf.h (congruence_class_hash): Rename from congruence_class_group_hash. Remove declaration of m_classes_vec. From-SVN: r244272
Diffstat (limited to 'gcc/ipa-icf.h')
-rw-r--r--gcc/ipa-icf.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 05fe2a8..c57224c 100644
--- a/gcc/ipa-icf.h
+++ b/gcc/ipa-icf.h
@@ -442,7 +442,7 @@ struct congruence_class_group
};
/* Congruence class set structure. */
-struct congruence_class_group_hash : nofree_ptr_hash <congruence_class_group>
+struct congruence_class_hash : nofree_ptr_hash <congruence_class_group>
{
static inline hashval_t hash (const congruence_class_group *item)
{
@@ -610,10 +610,7 @@ private:
hash_set <symtab_node *> m_removed_items_set;
/* Hashtable of congruence classes. */
- hash_table <congruence_class_group_hash> m_classes;
-
- /* Vector of congruence classes. */
- vec <congruence_class_group *> m_classes_vec;
+ hash_table <congruence_class_hash> m_classes;
/* Count of congruence classes. */
unsigned int m_classes_count;