summaryrefslogtreecommitdiff
path: root/gcc/ipa-str-reorg-dead-field-eliminate.c
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-05-14 16:00:00 +0200
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-05-14 16:00:00 +0200
commita89b85cdcd75aa36836967894a99d24bbc37338a (patch)
tree8f646867cf5f1a404f5f0514ffec7ceb9790852d /gcc/ipa-str-reorg-dead-field-eliminate.c
parentcf730672e416091269ef355bd4a8be5cf2a23785 (diff)
Refactored code works in mcferick/type-escape-analysis-merge
Diffstat (limited to 'gcc/ipa-str-reorg-dead-field-eliminate.c')
-rw-r--r--gcc/ipa-str-reorg-dead-field-eliminate.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/ipa-str-reorg-dead-field-eliminate.c b/gcc/ipa-str-reorg-dead-field-eliminate.c
index f86ed1f866a..a3d20f64283 100644
--- a/gcc/ipa-str-reorg-dead-field-eliminate.c
+++ b/gcc/ipa-str-reorg-dead-field-eliminate.c
@@ -2705,15 +2705,15 @@ iphw_execute_escape_analysis()
gcc_assert(!flag_ipa_typelist_struct && !flag_ipa_typelist_field);
const record_field_set to_reorg = get_fields_to_reorg();
print_record_field_set(to_reorg);
- //separate_set_of_pairs_into_pair_of_sets(to_reorg, interesting_records, interesting_fields);
-
- //hash_set<const_tree> orig_type_map;
- //collect_orig_structs (orig_type_map);
- //t_map mod_type_map;
- //compute_modified_structs (orig_type_map, mod_type_map);
- //t_map inverse_type_map;
- //compute_inverse_type_map (mod_type_map, inverse_type_map);
- //rewrite_references_to_modified_structs (mod_type_map, inverse_type_map);
+ separate_set_of_pairs_into_pair_of_sets(to_reorg, interesting_records, interesting_fields);
+
+ hash_set<const_tree> orig_type_map;
+ collect_orig_structs (orig_type_map);
+ t_map mod_type_map;
+ compute_modified_structs (orig_type_map, mod_type_map);
+ t_map inverse_type_map;
+ compute_inverse_type_map (mod_type_map, inverse_type_map);
+ rewrite_references_to_modified_structs (mod_type_map, inverse_type_map);
}
static void