Re: Compilation of object creation in C++

2015-08-21 Thread Richard Biener
On Fri, Aug 21, 2015 at 1:41 PM, Swati Rathi wrote: > On 2015-08-21 16:16, Richard Biener wrote: >> >> On Fri, Aug 21, 2015 at 12:44 PM, Uday P. Khedker >> wrote: >>> >>> >>> >>> On 08/19/2015 04:44 PM, Andrew Pinski wrote: On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wro

Re: Compilation of object creation in C++

2015-08-21 Thread Swati Rathi
On 2015-08-21 16:16, Richard Biener wrote: On Fri, Aug 21, 2015 at 12:44 PM, Uday P. Khedker wrote: On 08/19/2015 04:44 PM, Andrew Pinski wrote: On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wrote: Why is this different? Why is __comp_ctor not invoked in each case? This looks like

Re: Compilation of object creation in C++

2015-08-21 Thread Richard Biener
On Fri, Aug 21, 2015 at 12:44 PM, Uday P. Khedker wrote: > > > On 08/19/2015 04:44 PM, Andrew Pinski wrote: >> >> On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker >> wrote: >> >>> Why is this different? Why is __comp_ctor not invoked in each case? >> >> This looks like the function has been inlin

Re: Compilation of object creation in C++

2015-08-21 Thread Uday P. Khedker
On 08/19/2015 04:44 PM, Andrew Pinski wrote: On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wrote: Why is this different? Why is __comp_ctor not invoked in each case? This looks like the function has been inlined as it is short. Thanks, this is a useful lead. Setting -fno-inline seems

Re: Compilation of object creation in C++

2015-08-19 Thread Richard Biener
On Wed, Aug 19, 2015 at 2:10 PM, Uday P. Khedker wrote: > > > Andrew Pinski wrote on Wednesday 19 August 2015 04:44 PM: >> >> On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker >> wrote: >>> >>> We are working on an analysis for identifying the class of an object flow >>> sensitively for >>> flow s

Re: Compilation of object creation in C++

2015-08-19 Thread Uday P. Khedker
Andrew Pinski wrote on Wednesday 19 August 2015 04:44 PM: On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wrote: We are working on an analysis for identifying the class of an object flow sensitively for flow sensitive de-virtualization (i.e. replacing a virtual function call by a call to the

Re: Compilation of object creation in C++

2015-08-19 Thread Andrew Pinski
On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wrote: > > We are working on an analysis for identifying the class of an object flow > sensitively for > flow sensitive de-virtualization (i.e. replacing a virtual function call by > a call to the > function of a known class in the hierarchy). This