summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-04 21:37:06 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-04 21:37:06 +0000
commit020c749b4c8119d7493328aac7462e447dec88cf (patch)
tree14f9d312df96f3a3cf47a367e3b936b8d773c4fe /gcc/predict.c
parentd4e15290516b7d2d927c20a38c96c46964993bc8 (diff)
downloadgcc-020c749b4c8119d7493328aac7462e447dec88cf.tar.gz
* basic-block.h (profile_staus): New global variable.
* cfg.c (profile_status): Declare. (check_bb_profile): Break out from ....; use profile_status (dump_flow_info): ... here. * cfgbuild.c (find_basic_blocks): Set profile_status. * cfgexpand.c (tree_expand_cfg): Likewise. * predict.c (estimate_probability): Likewise. * profile.c (branch_prob): Likewise. * tree-cfg.c (build_tree_cfg): Likewise. (dump_function_to_file): Use check_bb_profile. * tree-pretty-print (dump_bb_header): Likewise. * tree-profile.c (do_tree_profiling): Cleanup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index e55427d9acc..d89282daa89 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -805,6 +805,8 @@ estimate_probability (struct loops *loops_info)
}
estimate_bb_frequencies (loops_info);
free_dominance_info (CDI_POST_DOMINATORS);
+ if (profile_status == PROFILE_ABSENT)
+ profile_status = PROFILE_GUESSED;
}
@@ -988,6 +990,8 @@ tree_estimate_probability (void)
flow_loops_free (&loops_info);
if (dump_file && (dump_flags & TDF_DETAILS))
dump_tree_cfg (dump_file, dump_flags);
+ if (profile_status == PROFILE_ABSENT)
+ profile_status = PROFILE_GUESSED;
}
/* __builtin_expect dropped tokens into the insn stream describing expected