aboutsummaryrefslogtreecommitdiff
path: root/gcc/web.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2004-05-15 09:39:30 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2004-05-15 09:39:30 +0000
commit827c06b6cfd22d7ca78f56614a5be1b50dadca79 (patch)
treedcc9e5b2879fa3fbd06b71b8cf966772d254405b /gcc/web.c
parent91cde0c3f5e20c4a77f68a91fc077666872483ab (diff)
downloadgcc-827c06b6cfd22d7ca78f56614a5be1b50dadca79.zip
gcc-827c06b6cfd22d7ca78f56614a5be1b50dadca79.tar.gz
gcc-827c06b6cfd22d7ca78f56614a5be1b50dadca79.tar.bz2
basic-block.h (life_analysis, [...]): Update prototypes.
* 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. From-SVN: r81873
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 af006bf..11f2caa 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. */