mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-13 13:07:28 +08:00
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:
parent
b4917c0b57
commit
5a9384dd83
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user