From 193a563a8b03fac81c1476ff09534267dce35d80 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 21 May 2002 10:54:21 +0200 Subject: profile.c (gen_edge_profiler): Set alias set before the memory is used. * profile.c (gen_edge_profiler): Set alias set before the memory is used. From-SVN: r53685 --- gcc/profile.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc/profile.c') diff --git a/gcc/profile.c b/gcc/profile.c index 5929a91..5924e0c 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -365,6 +365,12 @@ get_exec_counts () free (profile); return 0; } + if (rtl_dump_file) + { + fprintf(rtl_dump_file, "Merged %i profiles with maximal count %i.\n", + profile_info.count_profiles_merged, + (int)profile_info.max_counter_in_program); + } return profile; } @@ -1295,11 +1301,11 @@ gen_edge_profiler (edgeno) tmp = plus_constant (tmp, GCOV_TYPE_SIZE / BITS_PER_UNIT * edgeno); mem_ref = validize_mem (gen_rtx_MEM (mode, tmp)); + set_mem_alias_set (mem_ref, new_alias_set ()); + tmp = expand_simple_binop (mode, PLUS, mem_ref, const1_rtx, mem_ref, 0, OPTAB_WIDEN); - set_mem_alias_set (mem_ref, new_alias_set ()); - if (tmp != mem_ref) emit_move_insn (copy_rtx (mem_ref), tmp); -- cgit v1.1