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 PR ipa/68035


> >> +
> >> +      /* Initialize hash values if we are not in LTO mode.  */
> >> +      if (!in_lto_p)
> >> +	item->get_hash ();
> >>      }
> > 
> > Hmm, what is the difference to the LTO mode here. I would have expected that all the items
> > was analyzed in both paths?
> 
> Difference is that in case of the LTO mode, the hash value is read from streamed LTO file.
> On the other hand, in classic compilation mode we have to force the calculation as a hash value
> is computed lazily.

In this case we need to also handle cases where function/variable is born during WPA (i.e. produced
by earlier pass), so in_lto_p check looks wrong.
I will look at the updated patch.

Honza


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