re PR tree-optimization/40585 (tracer duplicates blocks w/o adjusting EH tree)

2009-07-02  Richard Guenther  <rguenther@suse.de>

	PR middle-end/40585
	* tree-cfg.c (gimple_can_duplicate_bb_p): Disallow duplicating
	basic blocks with GIMPLE_RESX.

From-SVN: r149173
This commit is contained in:
Richard Guenther 2009-07-02 12:16:39 +00:00 committed by Richard Biener
parent d8afd886db
commit f0b4e673de
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-07-02 Richard Guenther <rguenther@suse.de>
PR middle-end/40585
* tree-cfg.c (gimple_can_duplicate_bb_p): Disallow duplicating
basic blocks with GIMPLE_RESX.
2009-07-01 Martin Jambor <mjambor@suse.cz>
Backport from mainline:

View File

@ -4923,6 +4923,10 @@ gimple_move_block_after (basic_block bb, basic_block after)
static bool
gimple_can_duplicate_bb_p (const_basic_block bb ATTRIBUTE_UNUSED)
{
gimple_seq_node last = gimple_seq_last (bb_seq (bb));
/* We cannot duplicate GIMPLE_RESXs due to expander limitations. */
if (last && gimple_code (last->stmt) == GIMPLE_RESX)
return false;
return true;
}