* predict.c (estimate_probability): Remove unnecesary code.
authorJan Hubicka <jh@suse.cz>
Mon, 20 Sep 2004 00:05:38 +0000 (02:05 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 20 Sep 2004 00:05:38 +0000 (00:05 +0000)
From-SVN: r87736

gcc/ChangeLog
gcc/predict.c

index dc54f66bcafa83f61ee312344ce198999cb88b7d..6f6582d3f1c90120fd876e5c002a6ad7b1c0550d 100644 (file)
@@ -1,3 +1,7 @@
+2004-09-20  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (estimate_probability): Remove unnecesary code.
+
 2004-09-19  Ira Rosen  <irar@il.ibm.com>
 
        * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
index 88de74b80b29df5f2d144d6a101c4fab839f7686..d344907717779db07a71c519355dcc4388754297 100644 (file)
@@ -852,37 +852,9 @@ estimate_probability (struct loops *loops_info)
 
   /* Attach the combined probability to each conditional jump.  */
   FOR_EACH_BB (bb)
-    if (JUMP_P (BB_END (bb))
-       && any_condjump_p (BB_END (bb))
-       && bb->succ->succ_next != NULL)
-      combine_predictions_for_insn (BB_END (bb), bb);
+    combine_predictions_for_insn (BB_END (bb), bb);
 
-  remove_fake_exit_edges ();
-  /* Fill in the probability values in flowgraph based on the REG_BR_PROB
-     notes.  */
-  FOR_EACH_BB (bb)
-    {
-      rtx last_insn = BB_END (bb);
-
-      if (!can_predict_insn_p (last_insn))
-       {
-         /* We can predict only conditional jumps at the moment.
-            Expect each edge to be equally probable.
-            ?? In the future we want to make abnormal edges improbable.  */
-         int nedges = 0;
-         edge e;
-
-         for (e = bb->succ; e; e = e->succ_next)
-           {
-             nedges++;
-             if (e->probability != 0)
-               break;
-           }
-         if (!e)
-           for (e = bb->succ; e; e = e->succ_next)
-             e->probability = (REG_BR_PROB_BASE + nedges / 2) / nedges;
-       }
-    }
+  remove_fake_edges ();
   estimate_bb_frequencies (loops_info);
   free_dominance_info (CDI_POST_DOMINATORS);
   if (profile_status == PROFILE_ABSENT)