aboutsummaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
authorRevital Eres <eres@il.ibm.com>2007-09-09 09:25:32 +0000
committerRevital Eres <revitale@gcc.gnu.org>2007-09-09 09:25:32 +0000
commit97511ad77a76c86c46483a61eb5b8d1d208689af (patch)
tree5ad01d2ab295368d41efc4c0d35307fd13920c3b /gcc/modulo-sched.c
parent3968877d4adbc8d79de157c5ed4f8176558a7069 (diff)
downloadgcc-97511ad77a76c86c46483a61eb5b8d1d208689af.zip
gcc-97511ad77a76c86c46483a61eb5b8d1d208689af.tar.gz
gcc-97511ad77a76c86c46483a61eb5b8d1d208689af.tar.bz2
Use new debug counter
From-SVN: r128292
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 37c9204..075fe2e 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;
}