From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1487) id 0677D3835409; Tue, 17 Aug 2021 10:12:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0677D3835409 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Maxim Kuvyrkov To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2948] Improve diff-ability of scheduler logs X-Act-Checkin: gcc X-Git-Author: Maxim Kuvyrkov X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 75b1c753133162cc15cd705825315767e63f071e X-Git-Newrev: 92aadbd593c1aef6798e7a64b8f7a91fed32aa68 Message-Id: <20210817101214.0677D3835409@sourceware.org> Date: Tue, 17 Aug 2021 10:12:14 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2021 10:12:14 -0000 https://gcc.gnu.org/g:92aadbd593c1aef6798e7a64b8f7a91fed32aa68 commit r12-2948-g92aadbd593c1aef6798e7a64b8f7a91fed32aa68 Author: Maxim Kuvyrkov 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. */