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] Fix PR35607, another revenge of invariant addresses (ivopts)


Hi,

> > Yes.  address_invariant_p should be simply
> 
> Like that one.
> 
> Can we rely on TREE_INVARIANT on the base object of the reference
> tree or shall we open-code that as well (hm, I wasn't able to
> quickly come up with the correct thing here ;)).
>
> +   return TREE_INVARIANT (op);

return CONSTANT_CLASS_P (op) || DECL_P (op);

?

Zdenek


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