diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-15 22:45:32 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-15 22:45:32 +0000 |
commit | 97d97fccee1463fb620d97cce99092b8abbe81b2 (patch) | |
tree | 23385eb6895de7d47672c7ceb1816b55800119ee /gcc/toplev.c | |
parent | 0067793c98740517b36d9199d48dcb5962a237da (diff) | |
download | gcc-97d97fccee1463fb620d97cce99092b8abbe81b2.tar.gz |
new option to disable guessing of branch prediction
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 408f04aa279..51343617651 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -868,6 +868,9 @@ int flag_no_ident = 0; /* This will perform a peephole pass before sched2. */ int flag_peephole2 = 0; +/* This will try to guess branch probabilities. */ +int flag_guess_branch_prob = 0; + /* -fbounded-pointers causes gcc to compile pointers as composite objects occupying three words: the pointer value, the base address of the referent object, and the address immediately beyond the end @@ -1136,6 +1139,8 @@ lang_independent_options f_options[] = "Process #ident directives"}, { "peephole2", &flag_peephole2, 1, "Enables an rtl peephole pass run before sched2" }, + { "guess-branch-probability", &flag_guess_branch_prob, 1, + "Enables guessing of branch probabilities" }, {"math-errno", &flag_errno_math, 1, "Set errno after built-in math functions"}, {"bounded-pointers", &flag_bounded_pointers, 1, @@ -3253,7 +3258,8 @@ rest_of_compilation (decl) flow_loops_find (&loops, LOOP_TREE); /* Estimate using heuristics if no profiling info is available. */ - estimate_probability (&loops); + if (flag_guess_branch_prob) + estimate_probability (&loops); if (rtl_dump_file) flow_loops_dump (&loops, rtl_dump_file, NULL, 0); @@ -4636,6 +4642,7 @@ main (argc, argv) #ifdef CAN_DEBUG_WITHOUT_FP flag_omit_frame_pointer = 1; #endif + flag_guess_branch_prob = 1; } if (optimize >= 2) |