Problem with recompute_tree_invarant_for_addr_expr
Zdenek Dvorak
rakdver@atrey.karlin.mff.cuni.cz
Tue Jun 14 07:55:00 GMT 2005
Hello,
> On Mon, Jun 13, 2005 at 10:54:23PM +0200, Zdenek Dvorak wrote:
> > OK, I remembered. I put
> >
> > if (is_gimple_min_invariant (t))
> >
> > or
> >
> > if (is_gimple_val (t))
> > {
> > shortcut;
> > }
> >
> > type constructs on some places in gimplification.
>
> With an aim toward speeding up gimplification, I guess. Any idea how
> much benefit you get from that?
not really. The problem anyway is that it does not quite work even when
the decls with variable size are taken care of, as there are other
constructions with that ADDR_EXPR gets marked TREE_INVARIANT, but that
are not gimple.
Zdenek
> As for the original question, you could try modifying tree-nested.c to
> use a local routine for creating the ADDR_EXPRs of the frame object,
> and force TREE_INVARIANT on there.
More information about the Gcc
mailing list