aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorLaurynas Biveinis <laurynas.biveinis@gmail.com>2010-12-03 04:58:47 +0000
committerLaurynas Biveinis <laurynas.biveinis@gmail.com>2010-12-03 04:58:47 +0000
commit6de65fcc0789f3cd298da3a663bad18b94a0224e (patch)
treeb5eacb7d19ea31e3b1f6dae031254bd95f59aeb7 /gcc/predict.c
parent5db52844bae6be35a6dfbc774648cfecfc54df79 (diff)
2010-12-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* basic-block.h (struct edge_prediction): Remove forward declaration. * tree-flow.h (struct edge_prediction): Move from here... * predict.c (struct edge_prediction): ...to here. * cselib.h (struct elt_list): Move from here... * cselib.c (struct elt_list): ...to here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@167409 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index dbef3595c45..c6919908316 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -387,6 +387,15 @@ rtl_predicted_by_p (const_basic_block bb, enum br_predictor predictor)
static struct pointer_map_t *bb_predictions;
+/* Structure representing predictions in tree level. */
+
+struct edge_prediction {
+ struct edge_prediction *ep_next;
+ edge ep_edge;
+ enum br_predictor ep_predictor;
+ int ep_probability;
+};
+
/* Return true if the one of outgoing edges is already predicted by
PREDICTOR. */