diff options
author | Jan Hubicka <jh@suse.cz> | 2010-06-29 16:14:15 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-06-29 14:14:15 +0000 |
commit | b35366ce42d0cc1218679337be0a779c20af35e0 (patch) | |
tree | a5ef0708be39861c165f5c5612b671234a8fd8de /gcc/predict.h | |
parent | 50b56694bb665f06ad0a327498bebe45e0bd3d0d (diff) | |
download | gcc-b35366ce42d0cc1218679337be0a779c20af35e0.tar.gz |
predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is unreachable.
* predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
unreachable.
(rebuild_frequencies): New function.
* predict.h (rebuild_frequencies): Declare.
* tree-inline.c (copy_cfg_body): Compute properly count & frequency of
entry block and edge reaching new_entry.
(tree_function_versioning): When doing partial cloning, rebuild frequencies
when done.
* passes.c (execute_function_todo): Use rebild_frequencies.
From-SVN: r161536
Diffstat (limited to 'gcc/predict.h')
-rw-r--r-- | gcc/predict.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/predict.h b/gcc/predict.h index 18e57d77065..a0ca3a29071 100644 --- a/gcc/predict.h +++ b/gcc/predict.h @@ -42,5 +42,6 @@ extern const char *predictor_name (enum br_predictor); extern tree build_predict_expr (enum br_predictor, enum prediction); extern void tree_estimate_probability (void); extern void compute_function_frequency (void); +extern void rebuild_frequencies (void); #endif /* GCC_PREDICT_H */ |