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
This commit is contained in:
parent
b342207401
commit
441c9a1224
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user