* predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
* predict.def (PRED_LOOP_BRANCH): Remove.
From-SVN: r237311
+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.
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
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)