This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Update loop analysis 1/2
On Thu, 2003-07-31 at 11:55, Pop Sébastian wrote:
> On Thu, Jul 31, 2003 at 08:15:06AM -0400, Diego Novillo wrote:
> >
> > Since you're cleaning up the CFG code, could you remove the AT_..._LEVEL
> > enums and replace them with cfghooks? I think it will be cleaner in the
> > long run.
> >
> The following patch removes the enum. It bootstrapped on x86 with c,c++,f77.
>
Hmm, no. Sorry I didn't make myself clear. What I intended was to not
have 'if (at_rtl_level)' in the generic functions. I want the generic
functions to just call cfghooks for every CFG manipulation they want to
do. This means filling up the tree_cfg_hooks structure in tree-cfg.c
and possibly adding new ones.
I don't know how difficult would this be, but there will be an ABI
change in several existing functions and we will possibly need to add
new hooks.
> What about adding a field "bb_ann_t *tree_ann;" to the basic_block structure
> and remove the "int num_latches;" as Jan suggested?
>
That sounds like a good idea.
Diego.