public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Maxim Kuvyrkov <mkuvyrkov@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2948] Improve diff-ability of scheduler logs Date: Tue, 17 Aug 2021 10:12:14 +0000 (GMT) [thread overview] Message-ID: <20210817101214.0677D3835409@sourceware.org> (raw) https://gcc.gnu.org/g:92aadbd593c1aef6798e7a64b8f7a91fed32aa68 commit r12-2948-g92aadbd593c1aef6798e7a64b8f7a91fed32aa68 Author: Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> Date: Thu Aug 29 15:27:30 2019 +0000 Improve diff-ability of scheduler logs * haifa-sched.c (advance_one_cycle): Output more context-synchronization lines for diff. Diff: --- gcc/haifa-sched.c | 6 ++++-- 1 file 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. */
reply other threads:[~2021-08-17 10:12 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210817101214.0677D3835409@sourceware.org \ --to=mkuvyrkov@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).