aboutsummaryrefslogtreecommitdiff
path: root/gcc/sel-sched.c
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2010-12-24 17:19:23 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2010-12-24 17:19:23 +0300
commiteb277bf19cea73ab2ca031fdb650013d666529f6 (patch)
treeb24772c1516cd7beda2445712e3eb95b215c1519 /gcc/sel-sched.c
parent07818af47b961b903aee005f6771e14730d3e003 (diff)
downloadgcc-eb277bf19cea73ab2ca031fdb650013d666529f6.zip
gcc-eb277bf19cea73ab2ca031fdb650013d666529f6.tar.gz
gcc-eb277bf19cea73ab2ca031fdb650013d666529f6.tar.bz2
re PR rtl-optimization/47036 (ICE: in move_cond_jump, at sel-sched.c:4901 with -fschedule-insns -fselective-scheduling -fno-dce)
PR rtl-optimization/47036 * sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for unconditional jumps. * sel-sched.c (moveup_expr): Ditto. testsuite: * g++.dg/opt/pr47036.C: New. From-SVN: r168225
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r--gcc/sel-sched.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index edd6cb9..791adf1 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -2171,10 +2171,8 @@ moveup_expr (expr_t expr, insn_t through_insn, bool inside_insn_group,
|| ! in_current_region_p (fallthru_bb))
return MOVEUP_EXPR_NULL;
- /* And it should be mutually exclusive with through_insn, or
- be an unconditional jump. */
- if (! any_uncondjump_p (insn)
- && ! sched_insns_conditions_mutex_p (insn, through_insn)
+ /* And it should be mutually exclusive with through_insn. */
+ if (! sched_insns_conditions_mutex_p (insn, through_insn)
&& ! DEBUG_INSN_P (through_insn))
return MOVEUP_EXPR_NULL;
}