summaryrefslogtreecommitdiff
path: root/gcc/sched-rgn.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-04 19:05:38 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-04 19:05:38 +0000
commit1c3660b1bb6d34309570ebe90e8e2c92dd7181af (patch)
tree59abf3f1e6ae8becb54d67a1b916363801534ead /gcc/sched-rgn.c
parent0ea611076d075f9bf706885e64f0f8ddb1f0fa51 (diff)
downloadgcc-1c3660b1bb6d34309570ebe90e8e2c92dd7181af.tar.gz
PR rtl-optimization/54456
* sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-rgn.c')
-rw-r--r--gcc/sched-rgn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c
index 0498cede694..4a277f4a279 100644
--- a/gcc/sched-rgn.c
+++ b/gcc/sched-rgn.c
@@ -3473,7 +3473,7 @@ static bool
gate_handle_sched (void)
{
#ifdef INSN_SCHEDULING
- return flag_schedule_insns && dbg_cnt (sched_func);
+ return optimize > 0 && flag_schedule_insns && dbg_cnt (sched_func);
#else
return 0;
#endif