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] Do not recompute_tree_invariant_for_addr_expr


On Thu, 20 Mar 2008, Jakub Jelinek wrote:

> On Thu, Mar 20, 2008 at 11:16:39PM +0100, Richard Guenther wrote:
> > 
> > As we switched is_gimple_min_invariant to re-check its property at
> > every call we no longer need to keep the cache (TREE_INVARIANT)
> > up-to-date.
> 
> You are not touching just TREE_INVARIANT, but also TREE_CONSTANT.
> Are you sure it is ok to keep an ADDR_EXPR TREE_CONSTANT when it is no
> longer constant?
> E.g. omp-low.c can change TREE_CONSTANT ADDR_EXPRs (e.g. &global_var)
> into non-constant ADDR_EXPRs (&.omp_data_i->global_var).

I briefly went over the uses of TREE_CONSTANT in the middle-end and
decided it will not matter.  But I'll check again and try to replace
those that don't look right.

Thanks for the heads up.

Richard.


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