From 385b6e2d89aafa6135634bf661b1b559dedc8de8 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Fri, 21 Sep 2001 00:45:30 +0000 Subject: integrate.c (allocate_initial_values): New function. * integrate.c (allocate_initial_values): New function. * integrate.h (allocate_initial_values): Declare. * local-alloc.c (local_alloc): Move call to allocate_reg_info from here... * reload1.c (reload): And initialization of reg_equiv_memory_loc from here... * toplev.c (rest_of_compilation): To here. Call allocate_initial_values. * tm.texi: add description for ALLOCATE_INITIAL_VALUE. From-SVN: r45716 --- gcc/toplev.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 6364305..dc3bf74 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3430,6 +3430,15 @@ rest_of_compilation (decl) if (! register_life_up_to_date) recompute_reg_usage (insns, ! optimize_size); + + /* Allocate the reg_renumber array. */ + allocate_reg_info (max_regno, FALSE, TRUE); + + /* And the reg_equiv_memory_loc array. */ + reg_equiv_memory_loc = (rtx *) xcalloc (max_regno, sizeof (rtx)); + + allocate_initial_values (reg_equiv_memory_loc); + regclass (insns, max_reg_num (), rtl_dump_file); rebuild_label_notes_after_reload = local_alloc (); -- cgit v1.1