Commit 66b4d261 by Jan Hubicka Committed by Jan Hubicka

predict.c (predict_loops): Remove PRED_LOOP_BRANCH.

	* predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
	* predict.def (PRED_LOOP_BRANCH): Remove.

From-SVN: r237311
parent 2704efe8
2016-06-10 Jan Hubicka <hubicka@ucw.cz>
* predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
* predict.def (PRED_LOOP_BRANCH): Remove.
2016-06-10 David Malcolm <dmalcolm@redhat.com> 2016-06-10 David Malcolm <dmalcolm@redhat.com>
* Makefile.in (OBJS): Add ggc-tests.o. * Makefile.in (OBJS): Add ggc-tests.o.
......
...@@ -1805,18 +1805,6 @@ predict_loops (void) ...@@ -1805,18 +1805,6 @@ predict_loops (void)
if (predicted_by_p (bb, PRED_CONTINUE)) if (predicted_by_p (bb, PRED_CONTINUE))
continue; continue;
/* Loop branch heuristics - predict an edge back to a
loop's head as taken. */
if (bb == loop->latch)
{
e = find_edge (loop->latch, loop->header);
if (e)
{
header_found = 1;
predict_edge_def (e, PRED_LOOP_BRANCH, TAKEN);
}
}
/* Loop exit heuristics - predict an edge exiting the loop if the /* Loop exit heuristics - predict an edge exiting the loop if the
conditional has no loop header successors as not taken. */ conditional has no loop header successors as not taken. */
if (!header_found if (!header_found
......
...@@ -88,12 +88,6 @@ DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_VERY_LIKELY, ...@@ -88,12 +88,6 @@ DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_VERY_LIKELY,
DEF_PREDICTOR (PRED_COLD_FUNCTION, "cold function call", PROB_VERY_LIKELY, DEF_PREDICTOR (PRED_COLD_FUNCTION, "cold function call", PROB_VERY_LIKELY,
PRED_FLAG_FIRST_MATCH) PRED_FLAG_FIRST_MATCH)
/* Loopback edge is taken.
FIXME: This is currently disabled because loop_optimizer_init force
loops to have simple latches. */
DEF_PREDICTOR (PRED_LOOP_BRANCH, "loop branch", HITRATE (86),
PRED_FLAG_FIRST_MATCH)
/* Edge causing loop to terminate is probably not taken. */ /* Edge causing loop to terminate is probably not taken. */
DEF_PREDICTOR (PRED_LOOP_EXIT, "loop exit", HITRATE (92), DEF_PREDICTOR (PRED_LOOP_EXIT, "loop exit", HITRATE (92),
PRED_FLAG_FIRST_MATCH) PRED_FLAG_FIRST_MATCH)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment