summaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 14:14:15 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 14:14:15 +0000
commit555e8b05fce3ebfad73e482925e3fc55e8d2ae74 (patch)
treea5ef0708be39861c165f5c5612b671234a8fd8de /gcc/predict.h
parentec878c4f27bd60c90783157b65c3632644c42839 (diff)
downloadlinaro-gcc-555e8b05fce3ebfad73e482925e3fc55e8d2ae74.tar.gz
linaro-gcc-555e8b05fce3ebfad73e482925e3fc55e8d2ae74.tar.bz2
linaro-gcc-555e8b05fce3ebfad73e482925e3fc55e8d2ae74.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h1
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 */