Commit 0bed228e by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/48641 (ICE: verify_flow_info failed: Wrong frequency of…

re PR tree-optimization/48641 (ICE: verify_flow_info failed: Wrong frequency of block 77 -419530 with -O -fno-tree-ccp -fno-tree-copy-prop)


	PR middle-end/48641 
	* tree-ssa-threadupdate.c (redirect_edges): Watch for overflow.
	* gcc.dg/compile/pr48641.c: New file.

From-SVN: r182693
parent a055ca43
2011-12-25 Jan Hubicka <jh@suse.cz>
PR middle-end/48641
* tree-ssa-threadupdate.c (redirect_edges): Watch for overflow.
2011-12-26 Oleg Endo <oleg.endo@t-online.de>
* config/sh/sync.md: Add soft atomics ABI description.
2011-12-25 Jan Hubicka <jh@suse.cz>
PR middle-end/48641
* gcc.dg/compile/pr48641.c: New file.
2011-12-26 Joey Ye <joey.ye@arm.com>
PR middle-end/51200
......
......@@ -513,7 +513,11 @@ redirect_edges (void **slot, void *data)
e->src->index, e->dest->index, rd->dup_block->index);
rd->dup_block->count += e->count;
rd->dup_block->frequency += EDGE_FREQUENCY (e);
/* Excessive jump threading may make frequencies large enough so
the computation overflows. */
if (rd->dup_block->frequency < BB_FREQ_MAX * 2)
rd->dup_block->frequency += EDGE_FREQUENCY (e);
EDGE_SUCC (rd->dup_block, 0)->count += e->count;
/* Redirect the incoming edge to the appropriate duplicate
block. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment