summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-03 00:05:52 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-03 00:05:52 +0000
commit0bc18d6674b057042a848181b0f7bf0d5baba887 (patch)
tree48538557c882b1e8c83381b471c4d07309156a06 /gcc/haifa-sched.c
parent87fe19fc641547f6f4169566792bae286169b611 (diff)
downloadgcc-0bc18d6674b057042a848181b0f7bf0d5baba887.tar.gz
* haifa-sched.c (schedule_insn): Print table of instructions and
reservations. (sched_block): Do not print ready list at verbosity level 1. * sched-vis.c (print_insn): Make global. * sched-ebb.c (ebb_print_insn): Rename from... (print_insn): ... this one. * sched-int.h (print_insn): Declare git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53073 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c41
1 files changed, 20 insertions, 21 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 7af0e73c69e..a42165c7813 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -1127,29 +1127,28 @@ schedule_insn (insn, ready, clock)
|| !(*targetm.sched.use_dfa_pipeline_interface) ())
unit = insn_unit (insn);
- if (sched_verbose >= 2)
+ if (targetm.sched.use_dfa_pipeline_interface
+ && (*targetm.sched.use_dfa_pipeline_interface) ()
+ && sched_verbose >= 1)
{
+ char buf[2048];
- if (targetm.sched.use_dfa_pipeline_interface
- && (*targetm.sched.use_dfa_pipeline_interface) ())
- {
- fprintf (sched_dump,
- ";;\t\t--> scheduling insn <<<%d>>>:reservation ",
- INSN_UID (insn));
-
- if (recog_memoized (insn) < 0)
- fprintf (sched_dump, "nothing");
- else
- print_reservation (sched_dump, insn);
- }
- else
- {
- fprintf (sched_dump, ";;\t\t--> scheduling insn <<<%d>>> on unit ",
- INSN_UID (insn));
- insn_print_units (insn);
- }
+ print_insn (buf, insn, 0);
+ buf[40]=0;
+ fprintf (sched_dump, ";;\t%3i--> %-40s:", clock, buf);
- fprintf (sched_dump, "\n");
+ if (recog_memoized (insn) < 0)
+ fprintf (sched_dump, "nothing");
+ else
+ print_reservation (sched_dump, insn);
+ fputc ('\n', sched_dump);
+ }
+ else if (sched_verbose >= 2)
+ {
+ fprintf (sched_dump, ";;\t\t--> scheduling insn <<<%d>>> on unit ",
+ INSN_UID (insn));
+ insn_print_units (insn);
+ fputc ('\n', sched_dump);
}
if (!targetm.sched.use_dfa_pipeline_interface
@@ -2052,7 +2051,7 @@ schedule_block (b, rgn_n_insns)
rtx insn;
int cost;
- if (sched_verbose)
+ if (sched_verbose >= 2)
{
fprintf (sched_dump, ";;\tReady list (t =%3d): ",
clock_var);