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
This commit is contained in:
Jan Hubicka 2016-06-10 18:00:24 +02:00 committed by Jan Hubicka
parent 2704efe8c4
commit 66b4d26113
3 changed files with 5 additions and 18 deletions

View File

@ -1,3 +1,8 @@
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>
* Makefile.in (OBJS): Add ggc-tests.o.

View File

@ -1805,18 +1805,6 @@ predict_loops (void)
if (predicted_by_p (bb, PRED_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
conditional has no loop header successors as not taken. */
if (!header_found

View File

@ -88,12 +88,6 @@ DEF_PREDICTOR (PRED_NORETURN, "noreturn call", PROB_VERY_LIKELY,
DEF_PREDICTOR (PRED_COLD_FUNCTION, "cold function call", PROB_VERY_LIKELY,
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. */
DEF_PREDICTOR (PRED_LOOP_EXIT, "loop exit", HITRATE (92),
PRED_FLAG_FIRST_MATCH)