Fix pure/const propagation in modref

2022-04-07 Thread Jan Hubicka via Gcc-patches
Hi, this patch fixes ipa-modref propagation of pure/const functions. When we inline function, the modref summary is updated to represent the function after inlining and there we need to propagate nondeterministic and side-effects flag. Bootstrapped/regtested x86_64-linux, will commit it shortly.

Re: Fix pure/const propagation in modref

2022-04-07 Thread Richard Biener via Gcc-patches
On Thu, Apr 7, 2022 at 1:20 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > this patch fixes ipa-modref propagation of pure/const functions. When we > inline > function, the modref summary is updated to represent the function after > inlining and there we need to propagate nondeterministic and s

Re: Fix pure/const propagation in modref

2022-04-07 Thread Jan Hubicka via Gcc-patches
> On Thu, Apr 7, 2022 at 1:20 PM Jan Hubicka via Gcc-patches > wrote: > > > > Hi, > > this patch fixes ipa-modref propagation of pure/const functions. When we > > inline > > function, the modref summary is updated to represent the function after > > inlining and there we need to propagate nondet