]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jun 2016 16:00:24 +0000 (16:00 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jun 2016 16:00:24 +0000 (16:00 +0000)
* predict.def (PRED_LOOP_BRANCH): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237311 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/predict.c
gcc/predict.def

index 9be025e4c4b083c57da35715671d1b79d9a58953..af960257eaecdaebc262f495b0f6dff41652b38e 100644 (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.
index 0fa8c5b09e36422a13fba4dd983b71ba9536cc49..7a3398427e488dc9d8f1f5d819c1e96fcb1e3521 100644 (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
index e1c5faee258e7a11abaa69a56b556b474b998fe7..c0a3f3684a9683e2c192571aa2d905293272de03 100644 (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)