From: Josef Zlomek Date: Tue, 2 Sep 2003 08:46:21 +0000 (+0200) Subject: cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of finding the note again. X-Git-Tag: releases/gcc-3.4.0~3954 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=441c9a1224bc3719a8d094d83555a2e21e3811a5;p=thirdparty%2Fgcc.git cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of finding the note again. * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of finding the note again. From-SVN: r70992 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c602313a6400..3de132da61dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-02 Josef Zlomek + + * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of + finding the note again. + 2003-09-02 Nathanael Nerode * config.gcc: Remove host-specific rewrites of target_alias. diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index cd662da4a6d0..1fb436059722 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -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)