This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to find entry edges to natural loops
- To: Michael Hayes <mhayes at cygnus dot com>
- Subject: Re: Patch to find entry edges to natural loops
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 23 Aug 2000 08:55:36 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <14757.3738.35485.713464@paradise.net.nz>you write:
> This patch finds entry edges to natural loops and renames the list of
> exit edges to be consistent.
* basic-block.h (struct loop): Rename `exits' field to
`exit_edges'. Add `entry_edges' and `num_entries' fields.
* flow.c (flow_loop_exit_edges_find): Rename from flow_loop_exits_find.
(flow_loop_entry_edges_find): Add.
(flow_edge_list_print): Rename from flow_exits_print.
(flow_loops_find): Call flow_loop_entry_edges_find.
(flow_loop_dump): Dump entry_edges list.
(flow_loops_free): Free entry_edges.
Approved.
Thanks,
jeff