This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Move find_unreachable_blocks() to cfgcleanup.c.
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 2 Oct 2004 14:30:41 +0200
- Subject: Re: [patch] Move find_unreachable_blocks() to cfgcleanup.c.
- References: <20041002.082700.131912887.kazu@cs.umass.edu>
> Hi,
>
> Attached is a patch to move find_unreachable_blocks() to cfgcleanup.c
> as the only use of it is in delete_unreachable_blocks() in
> cfgcleanup.c.
>
> This way, the compiler can inline find_unreachable_blocks() into
> delete_unreachable_blocks() or use special calling conventions if it
> feels like.
>
> Bootstrapped on i686-pc-linux-gnu. OK to apply?
cfgcleanup.c is supposed to hold only the RTL implementation of the
cleanup code, so perhaps it might make more sense to move it other way
around and bring find_unreachable_blocks to cfganal as it is also used
by tree-cfg.
(cfganal already contains some code to manipulate with the CFG too)
Honza