diff options
author | Martin Liska <mliska@suse.cz> | 2019-10-30 08:56:22 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-10-30 07:56:22 +0000 |
commit | 87f94429feeb72587549fdafd3106f1d799607ff (patch) | |
tree | 08ffc5d297681144170e188457770e59e6573fe1 /gcc/trans-mem.c | |
parent | a62bfab5d2a332925fcf10c45b4c5d8ca499439d (diff) | |
download | gcc-87f94429feeb72587549fdafd3106f1d799607ff.zip gcc-87f94429feeb72587549fdafd3106f1d799607ff.tar.gz gcc-87f94429feeb72587549fdafd3106f1d799607ff.tar.bz2 |
Remove cgraph_local_info structure.
2019-10-30 Martin Liska <mliska@suse.cz>
* cgraph.c (cgraph_node::local_info): Transform to ...
(cgraph_node::local_info_node): ... this.
(cgraph_node::dump): Remove cgraph_local_info and
put its fields directly into cgraph_node.
(cgraph_node::get_availability): Likewise.
(cgraph_node::make_local): Likewise.
(cgraph_node::verify_node): Likewise.
* cgraph.h (struct GTY): Likewise.
* cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
(duplicate_thunk_for_node): Likewise.
(cgraph_node::create_clone): Likewise.
(cgraph_node::create_virtual_clone): Likewise.
(cgraph_node::create_version_clone): Likewise.
* cgraphunit.c (cgraph_node::reset): Likewise.
(cgraph_node::finalize_function): Likewise.
(cgraph_node::add_new_function): Likewise.
(analyze_functions): Likewise.
* combine.c (setup_incoming_promotions): Likewise.
* config/i386/i386.c (ix86_function_regparm): Likewise.
(ix86_function_sseregparm): Likewise.
(init_cumulative_args): Likewise.
* ipa-cp.c (determine_versionability): Likewise.
(count_callers): Likewise.
(set_single_call_flag): Likewise.
(initialize_node_lattices): Likewise.
(estimate_local_effects): Likewise.
(create_specialized_node): Likewise.
(identify_dead_nodes): Likewise.
* ipa-fnsummary.c (compute_fn_summary): Likewise.
(ipa_fn_summary_generate): Likewise.
* ipa-hsa.c (check_warn_node_versionable): Likewise.
(process_hsa_functions): Likewise.
* ipa-icf.c (set_local): Likewise.
* ipa-inline-analysis.c (initialize_inline_failed): Likewise.
* ipa-inline.c (speculation_useful_p): Likewise.
* ipa-profile.c (ipa_propagate_frequency): Likewise.
(ipa_profile): Likewise.
* ipa-split.c (split_function): Likewise.
(execute_split_functions): Likewise.
* ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
(ipa_sra_ipa_function_checks): Likewise.
* ipa-visibility.c (function_and_variable_visibility): Likewise.
* ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
* lto-cgraph.c (lto_output_node): Likewise.
(input_overwrite_node): Likewise.
* multiple_target.c (expand_target_clones): Likewise.
* omp-simd-clone.c (simd_clone_create): Likewise.
* trans-mem.c (expand_call_tm): Likewise.
(ipa_tm_mayenterirr_function): Likewise.
(ipa_tm_diagnose_tm_safe): Likewise.
(ipa_tm_diagnose_transaction): Likewise.
(ipa_tm_create_version): Likewise.
(ipa_tm_transform_calls_redirect): Likewise.
(ipa_tm_execute): Likewise.
* tree-inline.c (expand_call_inline): Likewise.
From-SVN: r277601
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 4a3f130..2e77528 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -2541,12 +2541,12 @@ expand_call_tm (struct tm_region *region, gimple_call_set_fndecl (stmt, repl); update_stmt (stmt); node = cgraph_node::create (repl); - node->local.tm_may_enter_irr = false; + node->tm_may_enter_irr = false; return expand_call_tm (region, gsi); } gcc_unreachable (); } - if (node->local.tm_may_enter_irr) + if (node->tm_may_enter_irr) transaction_subcode_ior (region, GTMA_MAY_ENTER_IRREVOCABLE); if (is_tm_abort (fn_decl)) @@ -4722,7 +4722,7 @@ ipa_tm_mayenterirr_function (struct cgraph_node *node) /* We may have previously marked this function as tm_may_enter_irr; see pass_diagnose_tm_blocks. */ - if (node->local.tm_may_enter_irr) + if (node->tm_may_enter_irr) return true; /* Recurse on the main body for aliases. In general, this will @@ -4746,7 +4746,7 @@ ipa_tm_diagnose_tm_safe (struct cgraph_node *node) for (e = node->callees; e ; e = e->next_callee) if (!is_tm_callable (e->callee->decl) - && e->callee->local.tm_may_enter_irr) + && e->callee->tm_may_enter_irr) error_at (gimple_location (e->call_stmt), "unsafe function call %qD within " "%<transaction_safe%> function", e->callee->decl); @@ -4814,7 +4814,7 @@ ipa_tm_diagnose_transaction (struct cgraph_node *node, if (is_tm_callable (fndecl)) continue; - if (cgraph_node::local_info (fndecl)->tm_may_enter_irr) + if (cgraph_node::local_info_node (fndecl)->tm_may_enter_irr) error_at (gimple_location (stmt), "unsafe function call %qD within " "atomic transaction", fndecl); @@ -4989,7 +4989,7 @@ ipa_tm_create_version (struct cgraph_node *old_node) gcc_assert (!old_node->ipa_transforms_to_apply.exists ()); new_node = old_node->create_version_clone (new_decl, vNULL, NULL); - new_node->local.local = false; + new_node->local = false; new_node->externally_visible = old_node->externally_visible; new_node->lowered = true; new_node->tm_clone = 1; @@ -5209,7 +5209,7 @@ ipa_tm_transform_calls_redirect (struct cgraph_node *node, CALLER. Also note that find_tm_replacement_function also contains mappings into the TM runtime, e.g. memcpy. These we know won't go irrevocable. */ - new_node->local.tm_may_enter_irr = 1; + new_node->tm_may_enter_irr = 1; } else { @@ -5417,7 +5417,7 @@ ipa_tm_execute (void) No need to do this if the function's address can't be taken. */ if (is_tm_pure (node->decl)) { - if (!node->local.local) + if (!node->local) record_tm_clone_pair (node->decl, node->decl); continue; } @@ -5544,14 +5544,14 @@ ipa_tm_execute (void) node = irr_worklist[i]; d = get_cg_data (&node, true); d->in_worklist = false; - node->local.tm_may_enter_irr = true; + node->tm_may_enter_irr = true; /* Propagate back to normal callers. */ for (e = node->callers; e ; e = e->next_caller) { caller = e->caller; if (!is_tm_safe_or_pure (caller->decl) - && !caller->local.tm_may_enter_irr) + && !caller->tm_may_enter_irr) { d = get_cg_data (&caller, true); maybe_push_queue (caller, &irr_worklist, &d->in_worklist); @@ -5562,7 +5562,7 @@ ipa_tm_execute (void) FOR_EACH_ALIAS (node, ref) { caller = dyn_cast<cgraph_node *> (ref->referring); - if (!caller->local.tm_may_enter_irr) + if (!caller->tm_may_enter_irr) { /* ?? Do not traverse aliases here. */ d = get_cg_data (&caller, false); |