diff options
author | Josef Zlomek <zlomekj@suse.cz> | 2003-09-02 10:46:21 +0200 |
---|---|---|
committer | Josef Zlomek <zlomek@gcc.gnu.org> | 2003-09-02 08:46:21 +0000 |
commit | 441c9a1224bc3719a8d094d83555a2e21e3811a5 (patch) | |
tree | d6944d22476de6e6c00bde5bfd4bd9b9078e6dac /gcc/cfgbuild.c | |
parent | b342207401255c817d94249fc85021b38efa7bfe (diff) | |
download | gcc-441c9a1224bc3719a8d094d83555a2e21e3811a5.zip gcc-441c9a1224bc3719a8d094d83555a2e21e3811a5.tar.gz gcc-441c9a1224bc3719a8d094d83555a2e21e3811a5.tar.bz2 |
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
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r-- | gcc/cfgbuild.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index cd662da..1fb4360 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) |