bt-load.c (migrate_btr_def): Conditionalize calls to insn_default_latency and result_ready_cost.

* bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
	calls to insn_default_latency and result_ready_cost.  Initialize
	def_latency to 1.

From-SVN: r68172
This commit is contained in:
Hans-Peter Nilsson 2003-06-19 00:29:52 +00:00 committed by Hans-Peter Nilsson
parent b4917c0b57
commit 5a9384dd83
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-06-19 Hans-Peter Nilsson <hp@axis.com>
* bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
calls to insn_default_latency and result_ready_cost. Initialize
def_latency to 1.
2003-06-18 Richard Henderson <rth@redhat.com>
* config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.

View File

@ -1176,7 +1176,7 @@ migrate_btr_def (btr_def def, int min_cost)
int give_up = 0;
int def_moved = 0;
btr_user user;
int def_latency;
int def_latency = 1;
if (rtl_dump_file)
fprintf (rtl_dump_file,
@ -1205,10 +1205,13 @@ migrate_btr_def (btr_def def, int min_cost)
live_range = BITMAP_XMALLOC ();
bitmap_copy (live_range, def->live_range);
#ifdef INSN_SCHEDULING
if ((*targetm.sched.use_dfa_pipeline_interface) ())
def_latency = insn_default_latency (def->insn);
else
def_latency = result_ready_cost (def->insn);
#endif
def_latency *= issue_rate;
for (user = def->uses; user != NULL; user = user->next)