2013-03-22 Richard Biener <rguenther@suse.de>
commit5c8a8be3eeae58a74aaf61046781fbc296e3ddda
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Mar 2013 09:12:46 +0000 (22 09:12 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Mar 2013 09:12:46 +0000 (22 09:12 +0000)
tree6564d1b5884d7bca34a263a8372358c9e3b53cc9
parent694683bbcd14ccda5b40367fe2ad0f75d030db6e
2013-03-22  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
(struct mem_ref): Make accesses_in_loop a vec of a vec of
aggregate mem_ref_loc.
(free_mem_ref_locs): Inline into ...
(memref_free): ... this and adjust.
(mem_ref_alloc): Adjust.
(mem_ref_locs_alloc): Remove.
(record_mem_ref_loc): Adjust.
(get_all_locs_in_loop): Rewrite into ...
(for_all_locs_in_loop): ... this iterator.
(rewrite_mem_ref_loc): New functor.
(rewrite_mem_refs): Use for_all_locs_in_loop.
(sm_set_flag_if_changed): New functor.
(execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
(ref_always_accessed): New functor.
(ref_always_accessed_p): Use for_all_locs_in_loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196899 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-im.c