Re: Detect EAF flags in ipa-modref

2020-11-11 Thread Richard Biener
On Tue, 10 Nov 2020, Jan Hubicka wrote: > > > + tree callee = gimple_call_fndecl (stmt); > > > + if (callee) > > > +{ > > > + cgraph_node *node = cgraph_node::get (callee); > > > + modref_summary *summary = node ? get_modref_function_summary (node) > > > + :

Re: Dead Field Elimination and Field Reordering

2020-11-11 Thread Erick Ochoa
Hello, I will be posting today some changes on the patches mailing list. I believe that due to some changes in the way clones are materialized, the transformation now supports IPA-SRA by default. I still need to test this more thoroughly, but initial tests show that this is no longer an issue

Re: typeof and operands in named address spaces

2020-11-11 Thread Segher Boessenkool
On Tue, Nov 10, 2020 at 09:11:08PM +0100, Peter Zijlstra wrote: > On Tue, Nov 10, 2020 at 10:42:58AM -0800, Nick Desaulniers wrote: > > When I think of qualifiers, I think of const and volatile. I'm not > > sure why the first post I'm cc'ed on talks about "segment" qualifiers. > > Maybe it's in re

Re: typeof and operands in named address spaces

2020-11-11 Thread Segher Boessenkool
On Tue, Nov 10, 2020 at 08:57:42AM +0100, Peter Zijlstra wrote: > On Mon, Nov 09, 2020 at 11:50:15AM -0800, Nick Desaulniers wrote: > > On Mon, Nov 9, 2020 at 11:46 AM Segher Boessenkool > > wrote: > > > On Mon, Nov 09, 2020 at 01:47:13PM +0100, Peter Zijlstra wrote: > > > > C in general does not

Using IFUNC with template functions.

2020-11-11 Thread Amrita H S via Gcc
Hi All, I want to have a template function as an ifunc. Find below my test program. // Test Program #include int glob_t = 2; typedef void (*VOID_FUNC_P)(void); template T add_isa1(T x, T y) { std::cout << "ISA1 implementation" << std::endl; return x + y; } template T add_isa2(T x, T y