diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9be025e4c4b..af960257eae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-10 Jan Hubicka + + * predict.c (predict_loops): Remove PRED_LOOP_BRANCH. + * predict.def (PRED_LOOP_BRANCH): Remove. + 2016-06-10 David Malcolm * Makefile.in (OBJS): Add ggc-tests.o. diff --git a/gcc/predict.c b/gcc/predict.c index 0fa8c5b09e3..7a3398427e4 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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 diff --git a/gcc/predict.def b/gcc/predict.def index e1c5faee258..c0a3f3684a9 100644 --- a/gcc/predict.def +++ b/gcc/predict.def @@ -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)