This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch [tree-profiling]: propagate profiling in loop headers
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>,Jan Hubicka <jh at suse dot cz>
- Date: Sat, 4 Dec 2004 21:05:52 +0100
- Subject: Re: Patch [tree-profiling]: propagate profiling in loop headers
- References: <0FF30C19-461F-11D9-A839-000A95D7D16C@apple.com>
Hello,
> 2004-12-02 Dale Johannesen <dalej@apple.com>
>
> * basic-block.h (scale_bbs_frequencies_int): New declaration.
> (scale_bbs_frequencies_gcov_type): New declaration.
> * cfgloopmanip.c (scale_bbs_frequencies): Renamed to
> scale_bbs_frequencies_int and moved to cfg.c.
> (scale_loop_frequencies): Adjust call to it.
> (duplicate_loop_to_header_edge): Adjust calls to it.
> * cfg.c (RDIV): New (copied from cfgloopmanip.c).
> (scale_bbs_frequencies_int): Moved from cfgloopmanip.c.
> (scale_bbs_frequencies_gcov_type): New.
> * tree-ssa-loop-ch.c (copy_loop_headers): Propagate profiling
> info.
this seems OK to me (I have spoken with Honza, feel free to commit this
to the tree-profiling branch).
Zdenek