summaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
authorrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-09 09:25:32 +0000
committerrevitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-09 09:25:32 +0000
commit76aaf9f055696918ba385683dba51544e207b763 (patch)
tree5ad01d2ab295368d41efc4c0d35307fd13920c3b /gcc/modulo-sched.c
parenteaf8c2f15e4b0b379271887c205aa20bf8239c85 (diff)
downloadgcc-76aaf9f055696918ba385683dba51544e207b763.tar.gz
Use new debug counter
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index 37c92048b41..075fe2eae9c 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -47,6 +47,7 @@ along with GCC; see the file COPYING3. If not see
#include "ddg.h"
#include "timevar.h"
#include "tree-pass.h"
+#include "dbgcnt.h"
#ifdef INSN_SCHEDULING
@@ -862,7 +863,6 @@ canon_loop (struct loop *loop)
static void
sms_schedule (void)
{
- static int passes = 0;
rtx insn;
ddg_ptr *g_arr, g;
int * node_order;
@@ -919,10 +919,10 @@ sms_schedule (void)
rtx count_reg;
/* For debugging. */
- if ((passes++ > MAX_SMS_LOOP_NUMBER) && (MAX_SMS_LOOP_NUMBER != -1))
+ if (dbg_cnt (sms_sched_loop) == false)
{
if (dump_file)
- fprintf (dump_file, "SMS reached MAX_PASSES... \n");
+ fprintf (dump_file, "SMS reached max limit... \n");
break;
}