cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of finding the note again.
authorJosef Zlomek <zlomekj@suse.cz>
Tue, 2 Sep 2003 08:46:21 +0000 (10:46 +0200)
committerJosef Zlomek <zlomek@gcc.gnu.org>
Tue, 2 Sep 2003 08:46:21 +0000 (08:46 +0000)
* cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
finding the note again.

From-SVN: r70992

gcc/ChangeLog
gcc/cfgbuild.c

index c602313a6400ccc2beecbcc93d032a59b25781cc..3de132da61dc1c9f461974624764347545f862a1 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
+
+       * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
+       finding the note again.
+
 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * config.gcc: Remove host-specific rewrites of target_alias.
index cd662da4a6d007cabd97f471eb9137195101c9fa..1fb4360597222f3eb5209381f102f171305812bf 100644 (file)
@@ -725,9 +725,7 @@ compute_outgoing_frequencies (basic_block b)
       if (!note)
        return;
 
-      probability = INTVAL (XEXP (find_reg_note (b->end,
-                                                REG_BR_PROB, NULL),
-                                 0));
+      probability = INTVAL (XEXP (note, 0));
       e = BRANCH_EDGE (b);
       e->probability = probability;
       e->count = ((b->count * probability + REG_BR_PROB_BASE / 2)