toplev.c (rest_of_handle_sched): Hide the entire function if INSN_SCHEDULING is not defined.
* toplev.c (rest_of_handle_sched): Hide the entire function if INSN_SCHEDULING is not defined. (rest_of_compilation): Call rest_of_handle_sched() only when INSN_SCHEDULING is defined. From-SVN: r68166
This commit is contained in:
parent
fe3ad57221
commit
a2f8629a69
|
@ -1,3 +1,10 @@
|
||||||
|
2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
|
* toplev.c (rest_of_handle_sched): Hide the entire function if
|
||||||
|
INSN_SCHEDULING is not defined.
|
||||||
|
(rest_of_compilation): Call rest_of_handle_sched() only when
|
||||||
|
INSN_SCHEDULING is defined.
|
||||||
|
|
||||||
2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
|
2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
|
||||||
J"orn Rennecke <joern.rennecke@superh.com>
|
J"orn Rennecke <joern.rennecke@superh.com>
|
||||||
|
|
||||||
|
|
|
@ -148,8 +148,8 @@ static void rest_of_handle_if_after_combine (tree, rtx);
|
||||||
static void rest_of_handle_tracer (tree, rtx);
|
static void rest_of_handle_tracer (tree, rtx);
|
||||||
static void rest_of_handle_combine (tree, rtx);
|
static void rest_of_handle_combine (tree, rtx);
|
||||||
static void rest_of_handle_regmove (tree, rtx);
|
static void rest_of_handle_regmove (tree, rtx);
|
||||||
static void rest_of_handle_sched (tree, rtx);
|
|
||||||
#ifdef INSN_SCHEDULING
|
#ifdef INSN_SCHEDULING
|
||||||
|
static void rest_of_handle_sched (tree, rtx);
|
||||||
static void rest_of_handle_sched2 (tree, rtx);
|
static void rest_of_handle_sched2 (tree, rtx);
|
||||||
#endif
|
#endif
|
||||||
static bool rest_of_handle_new_regalloc (tree, rtx, int *);
|
static bool rest_of_handle_new_regalloc (tree, rtx, int *);
|
||||||
|
@ -2647,12 +2647,12 @@ rest_of_handle_reorder_blocks (tree decl, rtx insns)
|
||||||
timevar_pop (TV_REORDER_BLOCKS);
|
timevar_pop (TV_REORDER_BLOCKS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef INSN_SCHEDULING
|
||||||
/* Run instruction scheduler. */
|
/* Run instruction scheduler. */
|
||||||
static void
|
static void
|
||||||
rest_of_handle_sched (tree decl, rtx insns)
|
rest_of_handle_sched (tree decl, rtx insns)
|
||||||
{
|
{
|
||||||
timevar_push (TV_SCHED);
|
timevar_push (TV_SCHED);
|
||||||
#ifdef INSN_SCHEDULING
|
|
||||||
|
|
||||||
/* Print function header into sched dump now
|
/* Print function header into sched dump now
|
||||||
because doing the sched analysis makes some of the dump. */
|
because doing the sched analysis makes some of the dump. */
|
||||||
|
@ -2667,13 +2667,11 @@ rest_of_handle_sched (tree decl, rtx insns)
|
||||||
|
|
||||||
close_dump_file (DFI_sched, print_rtl_with_bb, insns);
|
close_dump_file (DFI_sched, print_rtl_with_bb, insns);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
timevar_pop (TV_SCHED);
|
timevar_pop (TV_SCHED);
|
||||||
|
|
||||||
ggc_collect ();
|
ggc_collect ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef INSN_SCHEDULING
|
|
||||||
/* Run second scheduling pass after reload. */
|
/* Run second scheduling pass after reload. */
|
||||||
static void
|
static void
|
||||||
rest_of_handle_sched2 (tree decl, rtx insns)
|
rest_of_handle_sched2 (tree decl, rtx insns)
|
||||||
|
@ -3713,7 +3711,9 @@ rest_of_compilation (tree decl)
|
||||||
(see handling of reg_known_equiv in init_alias_analysis). */
|
(see handling of reg_known_equiv in init_alias_analysis). */
|
||||||
recompute_reg_usage (insns, !optimize_size);
|
recompute_reg_usage (insns, !optimize_size);
|
||||||
|
|
||||||
|
#ifdef INSN_SCHEDULING
|
||||||
rest_of_handle_sched (decl, insns);
|
rest_of_handle_sched (decl, insns);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Determine if the current function is a leaf before running reload
|
/* Determine if the current function is a leaf before running reload
|
||||||
since this can impact optimizations done by the prologue and
|
since this can impact optimizations done by the prologue and
|
||||||
|
|
Loading…
Reference in New Issue