Improve diff-ability of scheduler logs
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Thu, 29 Aug 2019 15:27:30 +0000 (15:27 +0000)
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
Tue, 17 Aug 2021 10:05:20 +0000 (10:05 +0000)
* haifa-sched.c (advance_one_cycle): Output more context-synchronization
lines for diff.

gcc/haifa-sched.c

index dac27fd..e14051f 100644 (file)
@@ -3155,9 +3155,11 @@ advance_state (state_t state)
 HAIFA_INLINE static void
 advance_one_cycle (void)
 {
+  int i;
+
   advance_state (curr_state);
-  if (sched_verbose >= 4)
-    fprintf (sched_dump, ";;\tAdvance the current state.\n");
+  for (i = 4; i <= sched_verbose; ++i)
+    fprintf (sched_dump, ";;\tAdvance the current state: %d.\n", clock_var);
 }
 
 /* Update register pressure after scheduling INSN.  */