diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-25 11:59:55 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-25 11:59:55 +0000 |
commit | 81c5be57cb4bf38064908fa96245463a3213a18a (patch) | |
tree | eabfa52c083b7034378660b03895b3fed8913c95 /gcc/cfg.c | |
parent | 83480dec6042d266a6e213a860dbd871b6b85f4c (diff) | |
download | linaro-gcc-81c5be57cb4bf38064908fa96245463a3213a18a.tar.gz linaro-gcc-81c5be57cb4bf38064908fa96245463a3213a18a.tar.bz2 linaro-gcc-81c5be57cb4bf38064908fa96245463a3213a18a.zip |
* tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
* cfg.c (update_bb_profile_for_threading): Fix rescaling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r-- | gcc/cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c index 4a3e6ad5cd9..044fcaef242 100644 --- a/gcc/cfg.c +++ b/gcc/cfg.c @@ -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); |