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] Clear TREE_STATIC on vector ctors if needed (PR middle-end/70633)


On Wed, 13 Apr 2016, Jakub Jelinek wrote:

> On Wed, Apr 13, 2016 at 09:50:29AM +0200, Richard Biener wrote:
> > But I wonder why expansion doesn't simply "re-compute" TREE_STATIC
> > here.  That is, do we rely on TREE_STATIC constructors for correctness
> > purposes as set by frontends?
> 
> Clearly we do rely on it.  If we did not rely on it, would the flag be
> useful for anything?

Sure, if it is merely a hint that an optimization is possible.  If so
we can compute it where we perform that optimization (if that's in
a single place).

Richard.


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