Re: Definition of EAF_NOESCAPE and fnspec strings

2020-11-09 Thread Richard Biener
On Mon, 9 Nov 2020, Jan Hubicka wrote: > > > But it also means that some of our FNSPECs are wrong now. I wonder if we > > > can > > > split this porperty to two different flags like EAF_NOEASCAPE and > > > EAF_INDIRECT_NOESCAPE? > > > > Note that EAF_NOESCAPE allows "escaping" to the return

Re: Definition of EAF_NOESCAPE and fnspec strings

2020-11-09 Thread Jan Hubicka
> > But it also means that some of our FNSPECs are wrong now. I wonder if we > > can > > split this porperty to two different flags like EAF_NOEASCAPE and > > EAF_INDIRECT_NOESCAPE? > > Note that EAF_NOESCAPE allows "escaping" to the return value (see > handle_rhs_call). I guess for simplicity

Re: Definition of EAF_NOESCAPE and fnspec strings

2020-11-08 Thread Richard Biener
On Sun, 8 Nov 2020, Jan Hubicka wrote: > Hi, > I implemented simple propagation of EAF arguments for ipa-modref (that is not > hard to do). My main aim was to detect cases where THIS parameter does not > escape but is used to read/write pointed to memory. This is meant to > avoid poor code

Definition of EAF_NOESCAPE and fnspec strings

2020-11-08 Thread Jan Hubicka
Hi, I implemented simple propagation of EAF arguments for ipa-modref (that is not hard to do). My main aim was to detect cases where THIS parameter does not escape but is used to read/write pointed to memory. This is meant to avoid poor code produced when we i.e. offline destructors on cold