aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-07-28 23:37:35 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-07-28 21:37:35 +0000
commit134d3a2eaa33145cc91a8f9a8b9ad01c399923bb (patch)
tree9dcbd6f10eb7084accad68aa621c0f3eb6a081d1 /gcc/predict.h
parentffd1553440265622ceef4a5fa31d7fa706adb7ca (diff)
downloadgcc-134d3a2eaa33145cc91a8f9a8b9ad01c399923bb.zip
gcc-134d3a2eaa33145cc91a8f9a8b9ad01c399923bb.tar.gz
gcc-134d3a2eaa33145cc91a8f9a8b9ad01c399923bb.tar.bz2
basic-block.h (EDGE_FREQUENCY): New macro.
* basic-block.h (EDGE_FREQUENCY): New macro. * bb-reorder (fixup_reorder_chain): Set counts and frequencies for new BB/edges. * flow.c (find_sub_basic_blocks): Likewise. (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY (redirect_edge_and_branch): Use EDGE_FREQUENCY. * predict.c (DEF_PREDICTOR): New argument FLAGS. (HITRATE): New macro. (PRED_FLAG_FIRST_MATCH): New constant. (predictor_info): New field flgags. (combine_predictions_for_insn): Use DS theory to combine probabilities; set the edge probabilities when finished. (estimate_probability): Avoid duplicated matches of LOOP_BRANCH heuristics for nested loops; update comment. * predict.def: Add flags for each prediction, set probabilities according to B&L paper. * predict.h (DEF_PREDICTOR): New argument FLAGS. * profile.c (compute_branch_probabilities): Cleanup way the edge probabilities are computed and REG_BR_PROB notes are dropped; if values does not match, emit error. (init_branch_prob): Do error instead of warning when profile driven feedback is missing or corrupt. From-SVN: r44439
Diffstat (limited to 'gcc/predict.h')
-rw-r--r--gcc/predict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.h b/gcc/predict.h
index 3cc52de..2170218 100644
--- a/gcc/predict.h
+++ b/gcc/predict.h
@@ -19,7 +19,7 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#define DEF_PREDICTOR(ENUM, NAME, HITRATE) ENUM,
+#define DEF_PREDICTOR(ENUM, NAME, HITRATE, FLAGS) ENUM,
enum br_predictor
{
#include "predict.def"