Re: Question about callgraph and call_stmt

2020-10-13 Thread Richard Biener via Gcc
On Tue, Oct 13, 2020 at 2:40 PM Erick Ochoa wrote: > > > > On 13/10/2020 13:37, Richard Biener wrote: > > On Tue, Oct 13, 2020 at 1:17 PM Erick Ochoa > > wrote: > >> > >> Hi, > >> > >> I am analyzing gimple calls during LTO. > > > > What's symtab->state at this point? > > The state is

Re: Question about callgraph and call_stmt

2020-10-13 Thread Erick Ochoa
On 13/10/2020 13:37, Richard Biener wrote: On Tue, Oct 13, 2020 at 1:17 PM Erick Ochoa wrote: Hi, I am analyzing gimple calls during LTO. What's symtab->state at this point? The state is IPA_SSA_AFTER_INLINING. I found a gimple call statement s that has the following properties:

Re: Question about callgraph and call_stmt

2020-10-13 Thread Richard Biener via Gcc
On Tue, Oct 13, 2020 at 1:17 PM Erick Ochoa wrote: > > Hi, > > I am analyzing gimple calls during LTO. What's symtab->state at this point? >I found a gimple call statement > s that has the following properties: > > ``` > tree fndecl = gimple_call_fndecl(s) > gcc_assert(fndecl) > // That is, the

Question about callgraph and call_stmt

2020-10-13 Thread Erick Ochoa
Hi, I am analyzing gimple calls during LTO. I found a gimple call statement s that has the following properties: ``` tree fndecl = gimple_call_fndecl(s) gcc_assert(fndecl) // That is, the gimple call returns a non-null fndecl. cgraph_node *n = cgraph_node::get(fndecl); gcc_assert(!n) // That