This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Move find_unreachable_blocks() to cfgcleanup.c.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]