bb-reorder.c (fix_edges_for_rarely_executed_code): Remove last parameter to reg_scan.

2005-01-15  Paolo Bonzini <bonzini@gnu.org>

	* bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
	last parameter to reg_scan.
	* loop.c (loop_optimize): Likewise.
	* passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
	rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
	rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
	rest_of_handle_gcse, rest_of_handle_loop_optimize,
	rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
	* regclass.c (reg_scan): Likewise, for the declaration.
	* rtl.h (reg_scan): Likewise, for the prototype.

From-SVN: r93758
This commit is contained in:
Paolo Bonzini 2005-01-17 08:46:19 +00:00 committed by Paolo Bonzini
parent fbf53020b5
commit c80a0f261b
6 changed files with 33 additions and 21 deletions

View File

@ -1,3 +1,16 @@
2005-01-15 Paolo Bonzini <bonzini@gnu.org>
* bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
last parameter to reg_scan.
* loop.c (loop_optimize): Likewise.
* passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
rest_of_handle_gcse, rest_of_handle_loop_optimize,
rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
* regclass.c (reg_scan): Likewise, for the declaration.
* rtl.h (reg_scan): Likewise, for the prototype.
2005-01-17 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call

View File

@ -1,5 +1,5 @@
/* Basic block reordering routines for the GNU compiler.
Copyright (C) 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
@ -1920,7 +1920,7 @@ fix_edges_for_rarely_executed_code (edge *crossing_edges,
if (!HAS_LONG_UNCOND_BRANCH)
{
fix_crossing_unconditional_branches ();
reg_scan (get_insns(), max_reg_num (), 1);
reg_scan (get_insns(), max_reg_num ());
}
add_reg_crossing_jump_notes ();

View File

@ -858,7 +858,7 @@ loop_optimize (rtx f, FILE *dumpfile, int flags)
/* Now find all register lifetimes. This must be done after
find_and_verify_loops, because it might reorder the insns in the
function. */
reg_scan (f, max_reg_before_loop, 1);
reg_scan (f, max_reg_before_loop);
/* This must occur after reg_scan so that registers created by gcse
will have entries in the register tables.

View File

@ -734,7 +734,7 @@ rest_of_handle_tracer (void)
dump_flow_info (dump_file);
tracer (0);
cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
close_dump_file (DFI_tracer, print_rtl_with_bb, get_insns ());
}
@ -750,13 +750,13 @@ rest_of_handle_if_conversion (void)
if (dump_file)
dump_flow_info (dump_file);
cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
if_convert (0);
}
timevar_push (TV_JUMP);
cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
timevar_pop (TV_JUMP);
close_dump_file (DFI_ce1, print_rtl_with_bb, get_insns ());
@ -807,7 +807,7 @@ rest_of_handle_web (void)
timevar_pop (TV_WEB);
close_dump_file (DFI_web, print_rtl_with_bb, get_insns ());
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
}
/* Do branch profiling and static profile estimation passes. */
@ -883,7 +883,7 @@ rest_of_handle_cfg (void)
{
/* Alias analysis depends on this information and mark_constant_function
depends on alias analysis. */
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
mark_constant_function ();
}
@ -898,7 +898,7 @@ rest_of_handle_jump_bypass (void)
open_dump_file (DFI_bypass, current_function_decl);
cleanup_cfg (CLEANUP_EXPENSIVE);
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
if (bypass_jumps (dump_file))
{
@ -959,8 +959,7 @@ rest_of_handle_life (void)
#endif
life_analysis (dump_file, PROP_FINAL);
if (optimize)
cleanup_cfg ((optimize ? CLEANUP_EXPENSIVE : 0) | CLEANUP_UPDATE_LIFE
| CLEANUP_LOG_LINKS
cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_UPDATE_LIFE | CLEANUP_LOG_LINKS
| (flag_thread_jumps ? CLEANUP_THREADING : 0));
if (extra_warnings)
@ -1001,7 +1000,7 @@ rest_of_handle_cse (void)
dump_flow_info (dump_file);
timevar_push (TV_CSE);
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
tem = cse_main (get_insns (), max_reg_num (), dump_file);
if (tem)
@ -1053,7 +1052,7 @@ rest_of_handle_cse2 (void)
cleanup_cfg (CLEANUP_EXPENSIVE);
timevar_pop (TV_JUMP);
}
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
close_dump_file (DFI_cse2, print_rtl_with_bb, get_insns ());
timevar_pop (TV_CSE2);
@ -1083,7 +1082,7 @@ rest_of_handle_gcse (void)
if (flag_expensive_optimizations)
{
timevar_push (TV_CSE);
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
tem2 = cse_main (get_insns (), max_reg_num (), dump_file);
purge_all_dead_edges (0);
delete_trivially_dead_insns (get_insns (), max_reg_num ());
@ -1104,7 +1103,7 @@ rest_of_handle_gcse (void)
if (flag_expensive_optimizations)
{
timevar_push (TV_CSE);
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
tem2 = cse_main (get_insns (), max_reg_num (), dump_file);
purge_all_dead_edges (0);
delete_trivially_dead_insns (get_insns (), max_reg_num ());
@ -1155,7 +1154,7 @@ rest_of_handle_loop_optimize (void)
/* The regscan pass is currently necessary as the alias
analysis code depends on this information. */
reg_scan (get_insns (), max_reg_num (), 1);
reg_scan (get_insns (), max_reg_num ());
}
cleanup_barriers ();
loop_optimize (get_insns (), dump_file, do_prefetch);
@ -1228,7 +1227,7 @@ rest_of_handle_loop2 (void)
cleanup_cfg (CLEANUP_EXPENSIVE);
delete_trivially_dead_insns (get_insns (), max_reg_num ());
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
if (dump_file)
dump_flow_info (dump_file);
close_dump_file (DFI_loop2, print_rtl_with_bb, get_insns ());
@ -1390,7 +1389,7 @@ rest_of_handle_jump2 (void)
expected_value_to_br_prob ();
delete_trivially_dead_insns (get_insns (), max_reg_num ());
reg_scan (get_insns (), max_reg_num (), 0);
reg_scan (get_insns (), max_reg_num ());
if (dump_file)
dump_flow_info (dump_file);
cleanup_cfg ((optimize ? CLEANUP_EXPENSIVE : 0) | CLEANUP_PRE_LOOP

View File

@ -2305,7 +2305,7 @@ int max_parallel;
static int max_set_parallel;
void
reg_scan (rtx f, unsigned int nregs, int repeat ATTRIBUTE_UNUSED)
reg_scan (rtx f, unsigned int nregs)
{
rtx insn;

View File

@ -1,6 +1,6 @@
/* Register Transfer Language (RTL) definitions for GCC
Copyright (C) 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
@ -2061,7 +2061,7 @@ extern void init_fake_stack_mems (void);
extern void init_reg_sets (void);
extern void regclass_init (void);
extern void regclass (rtx, int, FILE *);
extern void reg_scan (rtx, unsigned int, int);
extern void reg_scan (rtx, unsigned int);
extern void reg_scan_update (rtx, rtx, unsigned int);
extern void fix_register (const char *, int, int);
extern void init_subregs_of_mode (void);