aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/sched-rgn.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/sched-rgn.c')
-rw-r--r--gcc-4.4.0/gcc/sched-rgn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.4.0/gcc/sched-rgn.c b/gcc-4.4.0/gcc/sched-rgn.c
index 655483bda..234f11e7b 100644
--- a/gcc-4.4.0/gcc/sched-rgn.c
+++ b/gcc-4.4.0/gcc/sched-rgn.c
@@ -2476,7 +2476,9 @@ add_branch_dependences (rtx head, rtx tail)
add_dependence (last, insn, REG_DEP_ANTI);
}
-#ifdef HAVE_conditional_execution
+ if (!targetm.have_conditional_execution ())
+ return;
+
/* Finally, if the block ends in a jump, and we are doing intra-block
scheduling, make sure that the branch depends on any COND_EXEC insns
inside the block to avoid moving the COND_EXECs past the branch insn.
@@ -2525,7 +2527,6 @@ add_branch_dependences (rtx head, rtx tail)
if (INSN_P (insn) && GET_CODE (PATTERN (insn)) == COND_EXEC)
add_dependence (tail, insn, REG_DEP_ANTI);
}
-#endif
}
/* Data structures for the computation of data dependences in a regions. We