diff options
author | Jan Hubicka <jh@suse.cz> | 2010-12-05 02:22:12 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-12-05 01:22:12 +0000 |
commit | e7abfe07eeb03485efb146e40cbece2d55dcdbc0 (patch) | |
tree | 300420e3d71520862471e468fac5bb224bf25711 /gcc/lto-streamer-in.c | |
parent | cb20668f27d70d632104ba1b3bae5047522fdc5a (diff) | |
download | gcc-e7abfe07eeb03485efb146e40cbece2d55dcdbc0.zip gcc-e7abfe07eeb03485efb146e40cbece2d55dcdbc0.tar.gz gcc-e7abfe07eeb03485efb146e40cbece2d55dcdbc0.tar.bz2 |
* lto-streamer-in.c (input_cfg): Fix pasto.
From-SVN: r167467
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index fb20144..4fe9cdb 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); |