This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to kill more globals from loop.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch to kill more globals from loop.c
- From: Michael Hayes <mhayes at cygnus dot com>
- Date: Sun, 27 Aug 2000 12:48:19 +1200 (NZST)
This patch obliterates more global variables from loop.c and stores
them for now in the loop_info structure. I've also added a couple of
wrapper functions to simplify the passing of args through
for_each_rtx.
Michael.
2000-08-27 Michael Hayes <mhayes@cygnus.com>
* loop.h (struct loop_mem_info): Move from loop.c
(struct loop_info): Add fields store_mems, mems, mems_idx,
mems_allocated, unknown_address_altered,
unknown_constant_address_altered, num_mem_sets, and
first_loop_store_insn.
* loop.c (loop_store_mems): Replace with field in loop_info struct.
(loop_mems, loop_mems_idx, loop_mems_allocated): Likewise.
(unknown_address_altered, unknown_constant_address_altered): Likewise.
(num_mem_sets): Likewise.
(replace_loop_mems, replace_loop_regs): New.
(struct loop_replace_args): New.
(load_mems): Use replace_loop_mems.
(try_copy_prop): Use replace_loop_regs.
(replace_loop_reg, replace_loop_mem): Use loop_replace_args structure.
loop-mems.patch.gz