public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-139] profile: Unify identifier names for profiling Date: Thu, 5 May 2022 12:53:55 +0000 (GMT) [thread overview] Message-ID: <20220505125355.C09F63856DF5@sourceware.org> (raw) https://gcc.gnu.org/g:6c53cf2e59533434608c6daac0271248d1167da6 commit r13-139-g6c53cf2e59533434608c6daac0271248d1167da6 Author: Martin Liska <mliska@suse.cz> Date: Tue Mar 29 10:04:53 2022 +0200 profile: Unify identifier names for profiling gcc/ChangeLog: * tree-profile.cc (gimple_gen_ic_profiler): Prefix names with PROF_*. (gimple_gen_time_profiler): Likewise. Diff: --- gcc/tree-profile.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/tree-profile.cc b/gcc/tree-profile.cc index 6d40401f86f..97aab8801d0 100644 --- a/gcc/tree-profile.cc +++ b/gcc/tree-profile.cc @@ -383,8 +383,8 @@ gimple_gen_ic_profiler (histogram_value value, unsigned tag) Example: f_1 = foo; __gcov_indirect_call.counters = &__gcov4.main[0]; - PROF_9 = f_1; - __gcov_indirect_call.callee = PROF_9; + PROF_fn_9 = f_1; + __gcov_indirect_call.callee = PROF_fn_9; _4 = f_1 (); */ @@ -394,7 +394,7 @@ gimple_gen_ic_profiler (histogram_value value, unsigned tag) ic_tuple_var, ic_tuple_counters_field, NULL_TREE); stmt1 = gimple_build_assign (counter_ref, ref_ptr); - tmp1 = make_temp_ssa_name (ptr_type_node, NULL, "PROF"); + tmp1 = make_temp_ssa_name (ptr_type_node, NULL, "PROF_fn"); stmt2 = gimple_build_assign (tmp1, unshare_expr (value->hvalue.value)); tree callee_ref = build3 (COMPONENT_REF, ptr_type_node, ic_tuple_var, ic_tuple_callee_field, NULL_TREE); @@ -520,7 +520,7 @@ gimple_gen_time_profiler (unsigned tag) if (flag_profile_update == PROFILE_UPDATE_ATOMIC) { tree ptr = make_temp_ssa_name (build_pointer_type (type), NULL, - "time_profiler_counter_ptr"); + "PROF_time_profiler_counter_ptr"); tree addr = build1 (ADDR_EXPR, TREE_TYPE (ptr), tree_time_profiler_counter); gassign *assign = gimple_build_assign (ptr, NOP_EXPR, addr); @@ -532,10 +532,10 @@ gimple_gen_time_profiler (unsigned tag) build_int_cst (integer_type_node, MEMMODEL_RELAXED)); tree result_type = TREE_TYPE (TREE_TYPE (f)); - tree tmp = make_temp_ssa_name (result_type, NULL, "time_profile"); + tree tmp = make_temp_ssa_name (result_type, NULL, "PROF_time_profile"); gimple_set_lhs (stmt, tmp); gsi_insert_after (&gsi, stmt, GSI_NEW_STMT); - tmp = make_temp_ssa_name (type, NULL, "time_profile"); + tmp = make_temp_ssa_name (type, NULL, "PROF_time_profile"); assign = gimple_build_assign (tmp, NOP_EXPR, gimple_call_lhs (stmt)); gsi_insert_after (&gsi, assign, GSI_NEW_STMT); @@ -544,11 +544,11 @@ gimple_gen_time_profiler (unsigned tag) } else { - tree tmp = make_temp_ssa_name (type, NULL, "time_profile"); + tree tmp = make_temp_ssa_name (type, NULL, "PROF_time_profile"); gassign *assign = gimple_build_assign (tmp, tree_time_profiler_counter); gsi_insert_before (&gsi, assign, GSI_NEW_STMT); - tmp = make_temp_ssa_name (type, NULL, "time_profile"); + tmp = make_temp_ssa_name (type, NULL, "PROF_time_profile"); assign = gimple_build_assign (tmp, PLUS_EXPR, gimple_assign_lhs (assign), one); gsi_insert_after (&gsi, assign, GSI_NEW_STMT);
reply other threads:[~2022-05-05 12:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220505125355.C09F63856DF5@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).