Re: Handle EAF_DIRECT and EAF_UNUSED of pure calls

2020-11-30 Thread Richard Biener via Gcc-patches
On Sun, Nov 29, 2020 at 4:37 PM Jan Hubicka wrote: > > > On Wed, Nov 25, 2020 at 3:14 PM Jan Hubicka wrote: > > > > > > Hi, > > > while looking into structalias I noticed that we ignore EAF flags here. > > > This is pity since we still can apply direct and unused. > > > This patch simply copies l

Re: Handle EAF_DIRECT and EAF_UNUSED of pure calls

2020-11-29 Thread Jan Hubicka
> On Wed, Nov 25, 2020 at 3:14 PM Jan Hubicka wrote: > > > > Hi, > > while looking into structalias I noticed that we ignore EAF flags here. > > This is pity since we still can apply direct and unused. > > This patch simply copies logic from normal call handling. I relaize that > > it is bit more

Re: Handle EAF_DIRECT and EAF_UNUSED of pure calls

2020-11-25 Thread Richard Biener via Gcc-patches
On Wed, Nov 25, 2020 at 3:14 PM Jan Hubicka wrote: > > Hi, > while looking into structalias I noticed that we ignore EAF flags here. > This is pity since we still can apply direct and unused. > This patch simply copies logic from normal call handling. I relaize that > it is bit more expensive by c

Handle EAF_DIRECT and EAF_UNUSED of pure calls

2020-11-25 Thread Jan Hubicka
Hi, while looking into structalias I noticed that we ignore EAF flags here. This is pity since we still can apply direct and unused. This patch simply copies logic from normal call handling. I relaize that it is bit more expensive by creating callarg and doing transitive closure there instead of do