diff options
| author | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-02 08:46:21 +0000 |
|---|---|---|
| committer | zlomek <zlomek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-02 08:46:21 +0000 |
| commit | 1a3ad0f6d430e363bdb3afeacaf7efcb33166e67 (patch) | |
| tree | d6944d22476de6e6c00bde5bfd4bd9b9078e6dac | |
| parent | 269c34920bb603e7ab268a27bf00e934c5e47c18 (diff) | |
| download | ppe42-gcc-1a3ad0f6d430e363bdb3afeacaf7efcb33166e67.tar.gz ppe42-gcc-1a3ad0f6d430e363bdb3afeacaf7efcb33166e67.zip | |
* cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
finding the note again.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70992 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cfgbuild.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c602313a640..3de132da61d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index cd662da4a6d..1fb43605972 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) |

