summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 14:23:19 +0000
committerabel <abel@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-09 14:23:19 +0000
commit76f8cfc957cfeb334436c01f308df80ed2a48885 (patch)
treef163cb9451776543272b94f4ff670b5658c32f1f /gcc/haifa-sched.c
parent7b2ffc7cee711829fdf160075986bc3df8281ba1 (diff)
downloadgcc-76f8cfc957cfeb334436c01f308df80ed2a48885.tar.gz
* haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
dump message. (choose_ready): When first insn is chosen from the ready list, also dump it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140152 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index db9b54a9d87..ba604371745 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -1210,7 +1210,7 @@ advance_one_cycle (void)
{
advance_state (curr_state);
if (sched_verbose >= 6)
- fprintf (sched_dump, "\n;;\tAdvanced a state.\n");
+ fprintf (sched_dump, ";;\tAdvanced a state.\n");
}
/* Clock at which the previous instruction was issued. */
@@ -2326,9 +2326,10 @@ choose_ready (struct ready_list *ready, rtx *insn_ptr)
if (max_issue (ready, 1, curr_state, &index) == 0)
{
- if (sched_verbose >= 4)
- fprintf (sched_dump, ";;\t\tChosen none\n");
*insn_ptr = ready_remove_first (ready);
+ if (sched_verbose >= 4)
+ fprintf (sched_dump, ";;\t\tChosen insn (but can't issue) : %s \n",
+ (*current_sched_info->print_insn) (*insn_ptr, 0));
return 0;
}
else