From e7abfe07eeb03485efb146e40cbece2d55dcdbc0 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 5 Dec 2010 02:22:12 +0100 Subject: [PATCH] * lto-streamer-in.c (input_cfg): Fix pasto. From-SVN: r167467 --- gcc/ChangeLog | 4 ++++ gcc/lto-streamer-in.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9a578d5841..f7a79430cdb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2010-12-03 Jan Hubicka + + * lto-streamer-in.c (input_cfg): Fix pasto. + 2010-12-03 Jan Hubicka * ipa.c (cgraph_externally_visible_p): Do not localize builtins diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index fb201449c4f..4fe9cdb2c6b 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -753,8 +753,7 @@ input_cfg (struct lto_input_block *ib, struct function *fn, if (bb == NULL) bb = make_new_block (fn, index); - edge_count = (lto_input_uleb128 (ib) * count_materialization_scale - + REG_BR_PROB_BASE / 2) / REG_BR_PROB_BASE; + edge_count = lto_input_uleb128 (ib); /* Connect up the CFG. */ for (i = 0; i < edge_count; i++) @@ -768,7 +767,8 @@ input_cfg (struct lto_input_block *ib, struct function *fn, dest_index = lto_input_uleb128 (ib); probability = (int) lto_input_sleb128 (ib); - count = (gcov_type) lto_input_sleb128 (ib); + count = ((gcov_type) lto_input_sleb128 (ib) * count_materialization_scale + + REG_BR_PROB_BASE / 2) / REG_BR_PROB_BASE; edge_flags = lto_input_uleb128 (ib); dest = BASIC_BLOCK_FOR_FUNCTION (fn, dest_index);