This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Prettier output of COND_EXEC in scheduling dumps


I've committed the following patch which makes ia64 scheduling dumps a bit
more useful.

Bernd

	* haifa-sched.c (print_pattern): Prettier output for COND_EXEC.

Index: haifa-sched.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/haifa-sched.c,v
retrieving revision 1.165
diff -u -p -r1.165 haifa-sched.c
--- haifa-sched.c	2000/11/24 17:36:47	1.165
+++ haifa-sched.c	2000/11/27 14:52:52
@@ -5484,9 +5484,19 @@ print_pattern (buf, x, verbose)
       sprintf (buf, "use %s", t1);
       break;
     case COND_EXEC:
-      print_value (t1, COND_EXEC_CODE (x), verbose);
-      print_value (t2, COND_EXEC_TEST (x), verbose);
-      sprintf (buf, "cond_exec %s %s", t1, t2);
+      if (GET_CODE (COND_EXEC_TEST (x)) == NE
+	  && XEXP (COND_EXEC_TEST (x), 1) == const0_rtx)
+	print_value (t1, XEXP (COND_EXEC_TEST (x), 0), verbose);
+      else if (GET_CODE (COND_EXEC_TEST (x)) == EQ
+               && XEXP (COND_EXEC_TEST (x), 1) == const0_rtx)
+        {
+	  t1[0] = '!';
+          print_value (t1 + 1, XEXP (COND_EXEC_TEST (x), 0), verbose);
+	}
+      else
+        print_value (t1, COND_EXEC_TEST (x), verbose);
+      print_pattern (t2, COND_EXEC_CODE (x), verbose);
+      sprintf (buf, "(%s) %s", t1, t2);
       break;
     case PARALLEL:
       {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]