Re: [PATCH] tree-optimization/103168 - Improve VN of pure function calls

2021-11-24 Thread Jan Hubicka via Gcc-patches
> > Yes, note that we don't have callused unless IPA PTA is enabled, > but it might be salveagable from IPA reference info? What we're > missing is a stmt_clobbers_pt_solution_p, or rather a reasonably > cheap way to construct an ao_ref covering all of a points-to > solution. The not-so-cheap

Re: [PATCH] tree-optimization/103168 - Improve VN of pure function calls

2021-11-24 Thread Richard Biener via Gcc-patches
On Wed, 24 Nov 2021, Jan Hubicka wrote: > > This improves value-numbering of calls that read memory, calls > > to const functions with aggregate arguments and calls to > > pure functions where the latter include const functions we > > demoted to pure for the fear of interposing with a less > >

Re: [PATCH] tree-optimization/103168 - Improve VN of pure function calls

2021-11-24 Thread Jan Hubicka via Gcc-patches
> This improves value-numbering of calls that read memory, calls > to const functions with aggregate arguments and calls to > pure functions where the latter include const functions we > demoted to pure for the fear of interposing with a less > optimized version. Note that for pure functions we

[PATCH] tree-optimization/103168 - Improve VN of pure function calls

2021-11-24 Thread Richard Biener via Gcc-patches
This improves value-numbering of calls that read memory, calls to const functions with aggregate arguments and calls to pure functions where the latter include const functions we demoted to pure for the fear of interposing with a less optimized version. Note that for pure functions we do not