[patch] flow.c: Remove all arguments from recompute_reg_usage.
Kazu Hirata
kazu@cs.umass.edu
Tue Feb 15 13:44:00 GMT 2005
Hi,
Attached is a patch to remove all arguments from recompute_reg_usage
as they are not used.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
* flow.c (recompute_reg_usage): Remove all arguments.
* passes.c (rest_of_compilation): Adjust the call to
recompute_reg_usage.
* rtl.h: Adjust the prototype for recompute_reg_usage.
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.616
diff -u -d -p -r1.616 flow.c
--- flow.c 12 Feb 2005 15:17:52 -0000 1.616
+++ flow.c 14 Feb 2005 18:10:57 -0000
@@ -4205,17 +4205,11 @@ debug_regset (regset r)
register allocators to prioritize pseudos for allocation to hard regs.
More accurate reference counts generally lead to better register allocation.
- F is the first insn to be scanned.
-
- LOOP_STEP denotes how much loop_depth should be incremented per
- loop nesting level in order to increase the ref count more for
- references in a loop.
-
It might be worthwhile to update REG_LIVE_LENGTH, REG_BASIC_BLOCK and
possibly other information which is used by the register allocators. */
void
-recompute_reg_usage (rtx f ATTRIBUTE_UNUSED, int loop_step ATTRIBUTE_UNUSED)
+recompute_reg_usage (void)
{
allocate_reg_life_data ();
/* distribute_notes in combiner fails to convert some of the REG_UNUSED notes
Index: passes.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/passes.c,v
retrieving revision 2.68
diff -u -d -p -r2.68 passes.c
--- passes.c 14 Feb 2005 15:13:24 -0000 2.68
+++ passes.c 14 Feb 2005 18:10:57 -0000
@@ -1639,7 +1639,7 @@ rest_of_compilation (void)
/* Any of the several passes since flow1 will have munged register
lifetime data a bit. We need it to be up to date for scheduling
(see handling of reg_known_equiv in init_alias_analysis). */
- recompute_reg_usage (get_insns (), !optimize_size);
+ recompute_reg_usage ();
#ifdef INSN_SCHEDULING
if (optimize > 0 && flag_modulo_sched)
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.535
diff -u -d -p -r1.535 rtl.h
--- rtl.h 24 Jan 2005 08:55:44 -0000 1.535
+++ rtl.h 14 Feb 2005 18:10:57 -0000
@@ -2019,7 +2019,7 @@ extern rtx move_by_pieces (rtx, rtx, uns
unsigned int, int);
/* In flow.c */
-extern void recompute_reg_usage (rtx, int);
+extern void recompute_reg_usage (void);
extern int initialize_uninitialized_subregs (void);
extern void delete_dead_jumptables (void);
extern void print_rtl_with_bb (FILE *, rtx);
More information about the Gcc-patches
mailing list