predict.c (estimate_bb_frequencies): Do not reload the frequencies from notes.
authorJan Hubicka <jh@suse.cz>
Wed, 6 Mar 2002 10:29:11 +0000 (11:29 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 6 Mar 2002 10:29:11 +0000 (10:29 +0000)
* predict.c (estimate_bb_frequencies): Do not reload the
frequencies from notes.

From-SVN: r50356

gcc/ChangeLog
gcc/predict.c

index 3be7304970b95ae4d10d3fd72ecdcc2c0b1b7c1f..c6896dc24da8ef9d8a57d97209028336462242f2 100644 (file)
@@ -1,3 +1,8 @@
+Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
+
+       * predict.c (estimate_bb_frequencies): Do not reload the
+       frequencies from notes.
+
 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
index 6961a33fb458bba60ff9019a87e49f152bba2b48..f496b38dce0ad046766fad222f9163bdaee65a4f 100644 (file)
@@ -897,20 +897,6 @@ estimate_bb_frequencies (loops)
            for (e = BASIC_BLOCK (i)->succ; e; e = e->succ_next)
              e->probability = (REG_BR_PROB_BASE + nedges / 2) / nedges;
        }
-      else
-       {
-         probability = INTVAL (XEXP (find_reg_note (last_insn,
-                                                    REG_BR_PROB, 0), 0));
-         fallthru = BASIC_BLOCK (i)->succ;
-         if (!fallthru->flags & EDGE_FALLTHRU)
-           fallthru = fallthru->succ_next;
-         branch = BASIC_BLOCK (i)->succ;
-         if (branch->flags & EDGE_FALLTHRU)
-           branch = branch->succ_next;
-
-         branch->probability = probability;
-         fallthru->probability = REG_BR_PROB_BASE - probability;
-       }
     }
 
   ENTRY_BLOCK_PTR->succ->probability = REG_BR_PROB_BASE;