aboutsummaryrefslogtreecommitdiff
path: root/gcc/sel-sched-ir.c
diff options
context:
space:
mode:
authorAndrey Belevantsev <abel@ispras.ru>2009-11-13 17:32:52 +0300
committerAndrey Belevantsev <abel@gcc.gnu.org>2009-11-13 17:32:52 +0300
commit268bab853ddd5736056a371fd33aedd68e81cff9 (patch)
treecb47ff3d18e7195315428e596f3a0cadf5d29abf /gcc/sel-sched-ir.c
parentbcf3377540d2e5d8ea63fdb8aed16cff16f6ba85 (diff)
downloadgcc-268bab853ddd5736056a371fd33aedd68e81cff9.zip
gcc-268bab853ddd5736056a371fd33aedd68e81cff9.tar.gz
gcc-268bab853ddd5736056a371fd33aedd68e81cff9.tar.bz2
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
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r--gcc/sel-sched-ir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index 1075074..bd5560d 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -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;
}