diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-21 08:54:21 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-21 08:54:21 +0000 |
commit | 4c45e0187f86c0285c3c73c68a405698998018b8 (patch) | |
tree | b8c27e08af472f225581d448aeb8d14c42b0bdca | |
parent | 362ed03f273327a0ab5008d8e9ffc38a3e3d76c3 (diff) | |
download | gcc-4c45e0187f86c0285c3c73c68a405698998018b8.tar.gz |
* profile.c (gen_edge_profiler): Set alias set before the memory is
used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53685 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/profile.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f74e6d55c85..6f4a44248ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz> + + * profile.c (gen_edge_profiler): Set alias set before the memory is + used. + 2002-05-20 David S. Miller <davem@redhat.com> * cselib.c (max_value_regs): New. diff --git a/gcc/profile.c b/gcc/profile.c index 5929a9138fc..5924e0cbf33 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); |