aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index dccde72..068c187 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -3131,12 +3131,6 @@ compute_function_frequency (void)
}
}
-static bool
-gate_estimate_probability (void)
-{
- return flag_guess_branch_prob;
-}
-
/* Build PREDICT_EXPR. */
tree
build_predict_expr (enum br_predictor predictor, enum prediction taken)
@@ -3177,7 +3171,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_estimate_probability (); }
+ virtual bool gate (function *) { return flag_guess_branch_prob; }
unsigned int execute () { return tree_estimate_probability_driver (); }
}; // class pass_profile