This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Hot and cold attributes
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Mar 2007 09:16:27 -0800
- Subject: Re: [RFA] Hot and cold attributes
- References: <20070306140930.GD470@kam.mff.cuni.cz>
On Tue, Mar 06, 2007 at 03:09:30PM +0100, Jan Hubicka wrote:
> * errors.h (warning, error, fatal, internal_error): Mark as cold.
> * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
> are hot.
> (probably_cold_bb_p): Cold functions are cold.
> (probably_never_executed_bb_p): Cold functions are cold.
> (tree_bb_level_predictions): Predict calls to cold functions as not
> taken.
> (compute_function_frequency): Check hot/cold attributes.
> * function.h (function_frequency): Update comments.
> * predict.def (PRED_COLD_FUNCTION): Predict cold function.
> * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
> (c_common_att): Add cold and hot.
>
> * doc/extend.texi (hot,cold attributes): Document.
>
> * ansidecl.h (ATTRIBUTE_COLD, ATTRIBUTE_HOT): New.
Ok.
r~