aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-08-29 15:27:30 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-08-12 10:19:07 +0000
commit0517ef89bdaaa75805560ddfb1e7959590d0eed6 (patch)
tree23be8413f9a924e686cd2995d8e23955f0cbc7cc
parent014f0a22f28ebb8f5c804a90ba0d93ea0a6de18b (diff)
Improve diff-ability of scheduler logslinaro-local/maxim.kuvyrkov/pr91598
* haifa-sched.c (advance_one_cycle): Output more context-synchronization lines for diff. Change-Id: I7de4ca32a2063ed6c063eb2e5171d81a6362db61
-rw-r--r--gcc/haifa-sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index dac27fd7c29..e14051f4c07 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -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. */