43 void dump (FILE *file,
unsigned int indent = 0)
const;
100 hstate.
add_int (v->m_references.length ());
102 for (
unsigned i = 0;
i < v->m_references.length ();
i++)
103 hstate.
add_int (v->m_references[
i]->ultimate_alias_target ()->order);
105 hstate.
add_int (v->m_interposables.length ());
107 for (
unsigned i = 0;
i < v->m_interposables.length ();
i++)
108 hstate.
add_int (v->m_interposables[
i]->ultimate_alias_target ()->order);
110 return hstate.
end ();
116 if (
a->m_references.length () !=
b->m_references.length ()
117 ||
a->m_interposables.length () !=
b->m_interposables.length ())
120 for (
unsigned i = 0;
i <
a->m_references.length ();
i++)
121 if (
a->m_references[
i]->equal_address_to (
b->m_references[
i]) != 1)
124 for (
unsigned i = 0;
i <
a->m_interposables.length ();
i++)
125 if (!
a->m_interposables[
i]->semantically_equivalent_p
126 (
b->m_interposables[
i]))
161 return hstate.
end ();
201 hash_map <symtab_node *, sem_item *> &ignored_nodes) = 0;
205 hash_map <symtab_node *, sem_item *> &ignored_nodes) = 0;
322 hash_map <symtab_node *, sem_item *> &ignored_nodes)
324 hashval_t
get_hash (
void)
final override;
326 hash_map <symtab_node *, sem_item *> &ignored_nodes)
433 hashval_t
get_hash (
void)
final override;
437 hash_map <symtab_node *, sem_item *> &ignored_nodes)
442 hash_map <symtab_node *, sem_item *> &ignored_nodes)
460class sem_item_optimizer;
591 unsigned int loaded_symbols);
Definition genoutput.cc:150
Definition fibonacci_heap.h:143
void add_int(unsigned v)
Definition inchash.h:55
hashval_t end() const
Definition inchash.h:49
void add_ptr(const void *ptr)
Definition inchash.h:94
auto_vec< sem_item * > members
Definition ipa-icf.h:54
congruence_class(unsigned int _id)
Definition ipa-icf.h:32
bool is_class_used(void)
Definition ipa-icf.cc:3611
unsigned referenced_by_count
Definition ipa-icf.h:60
void dump(FILE *file, unsigned int indent=0) const
Definition ipa-icf.cc:3596
~congruence_class()
Definition ipa-icf.h:38
bool in_worklist
Definition ipa-icf.h:51
unsigned int id
Definition ipa-icf.h:57
static sem_function * parse(cgraph_node *node, bitmap_obstack *stack, ipa_icf_gimple::func_checker *checker)
Definition ipa-icf.cc:1531
bool equals(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes) final override
Definition ipa-icf.cc:812
ipa_icf_gimple::func_checker * m_checker
Definition ipa-icf.h:413
void dump_to_file(FILE *file) final override
Definition ipa-icf.h:331
eh_region region_tree
Definition ipa-icf.h:359
sem_function * m_compared_func
Definition ipa-icf.h:416
bool compare_phi_node(basic_block bb1, basic_block bb2)
Definition ipa-icf.cc:1562
bool merge(sem_item *alias_item) final override
Definition ipa-icf.cc:1017
bool equals_wpa(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes) final override
Definition ipa-icf.cc:537
vec< unsigned int > bb_sizes
Definition ipa-icf.h:368
auto_vec< tree > memory_access_types
Definition ipa-icf.h:377
bool param_used_p(unsigned int i)
Definition ipa-icf.cc:497
hashval_t cfg_checksum
Definition ipa-icf.h:371
unsigned int edge_count
Definition ipa-icf.h:365
vec< ipa_icf_gimple::sem_bb * > bb_sorted
Definition ipa-icf.h:383
void init(ipa_icf_gimple::func_checker *) final override
Definition ipa-icf.cc:1350
bool compare_polymorphic_p(void)
Definition ipa-icf.cc:1510
bool compatible_parm_types_p(tree, tree)
Definition ipa-icf.cc:515
hashval_t gcode_hash
Definition ipa-icf.h:374
unsigned ssa_names_size
Definition ipa-icf.h:380
sem_function(bitmap_obstack *stack)
Definition ipa-icf.cc:238
hashval_t m_alias_sets_hash
Definition ipa-icf.h:387
hashval_t get_hash(void) final override
Definition ipa-icf.cc:279
~sem_function()
Definition ipa-icf.cc:254
bool compare_edge_flags(cgraph_edge *e1, cgraph_edge *e2)
Definition ipa-icf.cc:478
cgraph_node * get_node(void)
Definition ipa-icf.h:338
void hash_stmt(gimple *stmt, inchash::hash &inchash)
Definition ipa-icf.cc:1444
bool bb_dict_test(vec< int > *bb_dict, int source, int target)
Definition ipa-icf.cc:1626
unsigned int arg_count
Definition ipa-icf.h:362
bool equals_private(sem_item *item)
Definition ipa-icf.cc:837
hashval_t get_bb_hash(const ipa_icf_gimple::sem_bb *basic_block)
Definition ipa-icf.cc:266
void fixup_points_to_sets(void)
Definition ipa-icf.cc:3549
static int sort_congruence_split(const void *, const void *)
Definition ipa-icf.cc:3054
hash_table< congruence_class_hash > m_classes
Definition ipa-icf.h:649
hash_map< symtab_node *, sem_item * > m_symtab_node_map
Definition ipa-icf.h:655
void dump_cong_classes(void)
Definition ipa-icf.cc:3239
void update_hash_by_addr_refs()
Definition ipa-icf.cc:2562
void update_hash_by_memory_access_type()
Definition ipa-icf.cc:2620
unsigned subdivide_classes_by_sensitive_refs()
Definition ipa-icf.cc:2816
void checking_verify_classes(void)
Definition ipa-icf.cc:2905
void build_graph(void)
Definition ipa-icf.cc:2659
bool execute(void)
Definition ipa-icf.cc:2461
static bool release_split_map(congruence_class *const &cls, bitmap const &b, traverse_split_pair *pair)
Definition ipa-icf.cc:2942
void remove_item(sem_item *item)
Definition ipa-icf.cc:2398
bool splitter_class_removed
Definition ipa-icf.h:658
void build_hash_based_classes(void)
Definition ipa-icf.cc:2637
bool merge_classes(unsigned int prev_class_count, unsigned int loaded_symbols)
Definition ipa-icf.cc:3339
void do_congruence_step(congruence_class *cls)
Definition ipa-icf.cc:3137
void read_section(lto_file_decl_data *file_data, const char *data, size_t len)
Definition ipa-icf.cc:2220
hash_set< symtab_node * > m_removed_items_set
Definition ipa-icf.h:646
varpool_node_hook_list * m_varpool_node_hooks
Definition ipa-icf.h:667
fibonacci_heap< unsigned, congruence_class > worklist
Definition ipa-icf.h:530
void subdivide_classes_by_equality(bool in_wpa=false)
Definition ipa-icf.cc:2733
static void varpool_removal_hook(varpool_node *node, void *data)
Definition ipa-icf.cc:2381
static void add_item_to_class(congruence_class *cls, sem_item *item)
Definition ipa-icf.cc:2551
void write_summary(void)
Definition ipa-icf.cc:2164
unsigned int m_classes_count
Definition ipa-icf.h:652
congruence_class * worklist_pop()
Definition ipa-icf.cc:3178
void process_cong_reduction(void)
Definition ipa-icf.cc:3206
void read_summary(void)
Definition ipa-icf.cc:2292
void verify_classes(void)
Definition ipa-icf.cc:2914
unsigned int parse_nonsingleton_classes(void)
Definition ipa-icf.cc:2706
void filter_removed_items(void)
Definition ipa-icf.cc:2409
void fixup_pt_set(struct pt_solution *pt)
Definition ipa-icf.cc:3517
bool do_congruence_step_for_index(congruence_class *cls, unsigned int index)
Definition ipa-icf.cc:3071
vec< symtab_pair > m_merged_variables
Definition ipa-icf.h:674
ref_map m_references
Definition ipa-icf.h:677
void add_class(congruence_class *cls)
Definition ipa-icf.cc:2337
congruence_class_group * get_group_by_hash(hashval_t hash, sem_item_type type)
Definition ipa-icf.cc:2350
void parse_funcs_and_vars(void)
Definition ipa-icf.cc:2515
void worklist_push(congruence_class *cls)
Definition ipa-icf.cc:3165
static unsigned int class_id
Definition ipa-icf.h:661
void remove_symtab_node(symtab_node *node)
Definition ipa-icf.cc:2390
cgraph_node_hook_list * m_cgraph_node_hooks
Definition ipa-icf.h:664
vec< sem_item * > m_items
Definition ipa-icf.h:643
~sem_item_optimizer()
Definition ipa-icf.cc:2139
static void cgraph_removal_hook(cgraph_node *node, void *data)
Definition ipa-icf.cc:2372
void register_hooks(void)
Definition ipa-icf.cc:2311
static bool traverse_congruence_split(congruence_class *const &cls, bitmap const &b, traverse_split_pair *pair)
Definition ipa-icf.cc:2957
sem_item_optimizer()
Definition ipa-icf.cc:2131
bitmap_obstack m_bmstack
Definition ipa-icf.h:670
void unregister_hooks(void)
Definition ipa-icf.cc:2325
virtual bool equals(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes)=0
static bool get_base_types(tree *t1, tree *t2)
congruence_class * cls
Definition ipa-icf.h:250
virtual bool equals_wpa(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes)=0
bool m_hash_set
Definition ipa-icf.h:297
unsigned referenced_by_count
Definition ipa-icf.h:268
virtual void init(ipa_icf_gimple::func_checker *)=0
virtual void dump_to_file(FILE *file)=0
hash_set< symtab_node * > refs_set
Definition ipa-icf.h:262
hashval_t m_hash
Definition ipa-icf.h:294
sem_item(sem_item_type _type, bitmap_obstack *stack)
Definition ipa-icf.cc:147
void hash_referenced_symbol_properties(symtab_node *ref, inchash::hash &hstate, bool address)
Definition ipa-icf.cc:416
unsigned int index_in_class
Definition ipa-icf.h:253
static bool compare_referenced_symbol_properties(symtab_node *used_by, symtab_node *n1, symtab_node *n2, bool address)
Definition ipa-icf.cc:326
void setup(bitmap_obstack *stack)
Definition ipa-icf.cc:186
bool compare_symbol_references(hash_map< symtab_node *, sem_item * > &ignored_nodes, symtab_node *n1, symtab_node *n2, bool address)
Definition ipa-icf.cc:445
symtab_node * node
Definition ipa-icf.h:240
tree decl
Definition ipa-icf.h:243
virtual hashval_t get_hash(void)=0
bitmap usage_index_bitmap
Definition ipa-icf.h:256
vec< tree > tree_refs
Definition ipa-icf.h:259
void update_hash_by_addr_refs(hash_map< symtab_node *, sem_item * > &m_symtab_node_map)
Definition ipa-icf.cc:747
virtual bool merge(sem_item *alias_item)=0
hashval_t global_hash
Definition ipa-icf.h:265
virtual ~sem_item()
Definition ipa-icf.cc:195
unsigned reference_count
Definition ipa-icf.h:247
static hash_map< const_tree, hashval_t > m_type_hash_cache
Definition ipa-icf.h:305
void update_hash_by_local_refs(hash_map< symtab_node *, sem_item * > &m_symtab_node_map)
Definition ipa-icf.cc:782
DEBUG_FUNCTION void dump(void)
Definition ipa-icf.cc:205
sem_item_type type
Definition ipa-icf.h:237
bool target_supports_symbol_aliases_p(void)
Definition ipa-icf.cc:218
void set_hash(hashval_t hash)
Definition ipa-icf.cc:228
void add_reference(ref_map *map, sem_item *target)
Definition ipa-icf.cc:165
sem_usage_pair(sem_item *_item, unsigned int _index)
Definition ipa-icf.cc:142
sem_item * item
Definition ipa-icf.h:141
unsigned int index
Definition ipa-icf.h:144
static sem_variable * parse(varpool_node *node, bitmap_obstack *stack, ipa_icf_gimple::func_checker *checker)
Definition ipa-icf.cc:1928
void init(ipa_icf_gimple::func_checker *) final override
Definition ipa-icf.cc:1944
bool equals(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes) final override
Definition ipa-icf.cc:1714
bool merge(sem_item *alias_item) final override
Definition ipa-icf.cc:1974
varpool_node * get_node(void)
Definition ipa-icf.h:446
void dump_to_file(FILE *file) final override
Definition ipa-icf.cc:2121
sem_variable(bitmap_obstack *stack)
Definition ipa-icf.cc:1643
hashval_t get_hash(void) final override
Definition ipa-icf.cc:1964
bool equals_wpa(sem_item *item, hash_map< symtab_node *, sem_item * > &ignored_nodes) final override
Definition ipa-icf.cc:1657
vec< symtab_node * > m_interposables
Definition ipa-icf.h:89
vec< symtab_node * > m_references
Definition ipa-icf.h:86
symbol_compare_collection(symtab_node *node)
Definition ipa-icf.cc:106
~symbol_compare_collection()
Definition ipa-icf.h:79
Definition ipa-icf-gimple.h:122
Definition ipa-icf-gimple.h:104
class bitmap_head * bitmap
Definition coretypes.h:51
union tree_node * tree
Definition coretypes.h:97
static struct string2counter_map map[debug_counter_number_of_counters]
Definition dbgcnt.cc:39
@ TDF_DETAILS
Definition dumpfile.h:92
T dyn_cast(U *p)
Definition is-a.h:280
Definition fold-const.cc:4258
std::pair< symtab_node *, symtab_node * > symtab_pair
Definition ipa-icf.h:173
hash_map< sem_usage_hash, auto_vec< sem_item * > > ref_map
Definition ipa-icf.h:171
sem_item_type
Definition ipa-icf.h:65
@ FUNC
Definition ipa-icf.h:66
@ VAR
Definition ipa-icf.h:67
i
Definition poly-int.h:776
Ca const poly_int< N, Cb > & b
Definition poly-int.h:771
Ca & a
Definition poly-int.h:770
Definition basic-block.h:117
Definition genautomata.cc:499
Definition collect2.cc:168
sem_item_type type
Definition ipa-icf.h:465
hashval_t hash
Definition ipa-icf.h:464
vec< congruence_class * > classes
Definition ipa-icf.h:466
static int equal(const congruence_class_group *item1, const congruence_class_group *item2)
Definition ipa-icf.h:477
static hashval_t hash(const congruence_class_group *item)
Definition ipa-icf.h:472
static bool equal(sem_usage_pair *, sem_usage_pair *)
Definition ipa-icf.h:165
static hashval_t hash(sem_usage_pair *)
Definition ipa-icf.h:154
static hashval_t hash(value_type v)
Definition ipa-icf.h:97
static bool equal(value_type a, value_type b)
Definition ipa-icf.h:114
sem_item_optimizer * optimizer
Definition ipa-icf.h:486
class congruence_class * cls
Definition ipa-icf.h:487
Definition lto-streamer.h:556
Definition hash-traits.h:303
Definition gengtype.h:218
Definition hash-traits.h:168
symbol_compare_collection * value_type
Definition hash-traits.h:169
Definition tree-ssa-alias.h:29
Definition gengtype.h:252
Definition hash-traits.h:57
#define gcc_assert(EXPR)
Definition system.h:821
#define false
Definition system.h:895
#define DEBUG_FUNCTION
Definition system.h:1243
void dump_function_to_file(tree fndecl, FILE *file, dump_flags_t flags)
Definition tree-cfg.cc:8282