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, Jul 31, 2003 at 12:26:21PM -0400, Diego Novillo wrote:
> 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.
>
Ok, I think I've got the idea.
Since the at_rtl_level is used only in the top level functions:
loop_optimizer_init (FILE *dumpfile)
loop_optimizer_finalize (struct loops *loops, FILE *dumpfile)
they have to be inserted in the hooks structure too.
I will prepare a patch with these changes and the tree annotations for bb.