Commit a1709769 by Kaz Kojima

re PR rtl-optimization/27406 (gcc.c-torture/execute/built-in-setjmp.c fails on…

re PR rtl-optimization/27406 (gcc.c-torture/execute/built-in-setjmp.c fails on sh64-*-linux-gnu with -O2)

	PR rtl-optimization/27406
	* bt-load.c (migrate_btr_def): Skip the block having abnormal
	edges.

From-SVN: r113766
parent c497db75
2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
PR rtl-optimization/27406
* bt-load.c (migrate_btr_def): Skip the block having abnormal
edges.
2006-05-14 Roger Sayle <roger@eyesopen.com>
PR rtl-optimization/27538
......
......@@ -1339,6 +1339,15 @@ migrate_btr_def (btr_def def, int min_cost)
/* Try to move the instruction that sets the target register into
basic block TRY. */
int try_freq = basic_block_freq (try);
edge_iterator ei;
edge e;
/* If TRY has abnormal edges, skip it. */
FOR_EACH_EDGE (e, ei, try->succs)
if (e->flags & EDGE_COMPLEX)
break;
if (e)
continue;
if (dump_file)
fprintf (dump_file, "trying block %d ...", try->index);
......
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