diff options
author | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-13 14:32:52 +0000 |
---|---|---|
committer | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-13 14:32:52 +0000 |
commit | bf19734bd41b8f565e8d268ae53cb4fa408492c6 (patch) | |
tree | cb47ff3d18e7195315428e596f3a0cadf5d29abf /gcc/sel-sched-ir.c | |
parent | d9ab20389238e942494df234f54a473bb02cec96 (diff) | |
download | gcc-bf19734bd41b8f565e8d268ae53cb4fa408492c6.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154148 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r-- | gcc/sel-sched-ir.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index 10750746660..bd5560d610c 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; } |