sched-vis.c (MAX_VISUAL_NO_UNIT): Define.

* sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
        (vis_no_unit): Use it.
        (visualize_no_unit): Add the insn only if room exists.

From-SVN: r44739
This commit is contained in:
Graham Stott 2001-08-09 13:32:57 +00:00 committed by Graham Stott
parent a4e11a5c69
commit b1b6b0cb9c
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2001-08-09 Graham Stott <grahams@redhat.com>
* sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
(vis_no_unit): Use it.
(visualize_no_unit): Add the insn only if room exists.
2001-08-09 Graham Stott <grahams@redhat.com>
* predict.c (estimate_probability): Replace magic numbers with

View File

@ -87,7 +87,8 @@ int n_visual_lines;
static unsigned visual_tbl_line_length;
char *visual_tbl;
int n_vis_no_unit;
rtx vis_no_unit[10];
#define MAX_VISUAL_NO_UNIT 20
rtx vis_no_unit[MAX_VISUAL_NO_UNIT];
/* Finds units that are in use in this fuction. Required only
for visualization. */
@ -844,8 +845,11 @@ void
visualize_no_unit (insn)
rtx insn;
{
vis_no_unit[n_vis_no_unit] = insn;
n_vis_no_unit++;
if (n_vis_no_unit < MAX_VISUAL_NO_UNIT)
{
vis_no_unit[n_vis_no_unit] = insn;
n_vis_no_unit++;
}
}
/* Print insns scheduled in clock, for visualization. */