summaryrefslogtreecommitdiff
path: root/gcc/web.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-15 09:39:30 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-15 09:39:30 +0000
commit613172207b7ce182da93de2237405652ce34a4d6 (patch)
treedcc9e5b2879fa3fbd06b71b8cf966772d254405b /gcc/web.c
parent86484e7f20c49054415e308237678b530fece61e (diff)
downloadgcc-613172207b7ce182da93de2237405652ce34a4d6.tar.gz
* basic-block.h (life_analysis, delete_noop_moves):
Update prototypes. * bt-load.c (branch_target_load_optimize): Don't take the insns stream as an argument. Update the life_analysis calls. * combine.c (combine_instructions): Update delete_noop_moves calls. * flow.c (notice_stack_pointer_modification): Don't take the insns stream as an argument. Work on the flow graph. (life_analysis): Likewise. (delete_noop_moves): Likewise. * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call. (rest_of_handle_life): Update life_analysis call. (rest_of_compilation): Likewise, and also update branch_target_load_optimize call. * ra.c (reg_alloc): Update life_analysis call. * reg-stack.c (reg_to_stack): Likewise. Also, don't take the insns stream as an argument. * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves call. * rtl.c (branch_target_load_optimize, reg_to_stack): Update prototypes. * value-profile.c (branch_prob): Update life_analysis call. * web.c (web_main): Work on the CFG, not on the insns stream. * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls. * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise. * config/sh/sh.c (sh_output_mi_thunk): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81873 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/web.c')
-rw-r--r--gcc/web.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/web.c b/gcc/web.c
index af006bfaf50..11f2caa6cd2 100644
--- a/gcc/web.c
+++ b/gcc/web.c
@@ -262,6 +262,7 @@ web_main (void)
int max = max_reg_num ();
char *used;
char *use_addressof;
+ basic_block bb;
rtx insn;
df = df_init ();
@@ -280,9 +281,12 @@ web_main (void)
union_defs (df, df->uses[i], def_entry, use_entry);
/* We can not safely rename registers whose address is taken. */
- for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
- if (INSN_P (insn))
- for_each_rtx (&PATTERN (insn), mark_addressof, use_addressof);
+ FOR_EACH_BB (bb)
+ FOR_BB_INSNS (bb, insn)
+ {
+ if (INSN_P (insn))
+ for_each_rtx (&PATTERN (insn), mark_addressof, use_addressof);
+ }
/* Update the instruction stream, allocating new registers for split pseudos
in progress. */