diff options
author | Jan Hubicka <jh@suse.cz> | 2005-06-25 13:59:55 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-06-25 11:59:55 +0000 |
commit | afc970a415a9c8e06ebcec7c3fde19a7983b259c (patch) | |
tree | eabfa52c083b7034378660b03895b3fed8913c95 /gcc/cfg.c | |
parent | 5d9f607b1b3e84f2f360aa758bcedf181649e5bb (diff) | |
download | gcc-afc970a415a9c8e06ebcec7c3fde19a7983b259c.zip gcc-afc970a415a9c8e06ebcec7c3fde19a7983b259c.tar.gz gcc-afc970a415a9c8e06ebcec7c3fde19a7983b259c.tar.bz2 |
tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
* tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
* cfg.c (update_bb_profile_for_threading): Fix rescaling.
From-SVN: r101322
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -901,7 +901,7 @@ update_bb_profile_for_threading (basic_block bb, int edge_frequency, int scale = 65536 * REG_BR_PROB_BASE / prob; FOR_EACH_EDGE (c, ei, bb->succs) - c->probability *= scale / 65536; + c->probability = (c->probability * scale) / 65536; } gcc_assert (bb == taken_edge->src); |