re PR rtl-optimization/41697 (ICE on gcc.c-torture/compile/20090917-1.c)

PR rtl-optimization/41697
        * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
        a conditional jump has a single successor.

From-SVN: r154148
This commit is contained in:
Andrey Belevantsev 2009-11-13 17:32:52 +03:00 committed by Andrey Belevantsev
parent bcf3377540
commit 268bab853d
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-11-13 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/41697
* sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
a conditional jump has a single successor.
2009-11-13 Andrey Belevantsev <abel@ispras.ru>
* sched-deps.c (init_deps): New parameter lazy_reg_last. Don't

View File

@ -4323,6 +4323,11 @@ fallthru_bb_of_jump (rtx jump)
if (!any_condjump_p (jump))
return NULL;
/* A basic block that ends with a conditional jump may still have one successor
(and be followed by a barrier), we are not interested. */
if (single_succ_p (BLOCK_FOR_INSN (jump)))
return NULL;
return FALLTHRU_EDGE (BLOCK_FOR_INSN (jump))->dest;
}