Re: Make inliner to predict &this->field to be optimized out

2012-10-29 Thread Jan Hubicka
> > { > > tree rhs = gimple_assign_rhs1 (stmt); > > @@ -1584,6 +1585,20 @@ eliminated_by_inlining_prob (gimple stmt > > /* Reads of parameter are expected to be free. */ > > if (unmodified_parm (stmt, inner_rhs)) > > rhs_free = true; > >

Re: Make inliner to predict &this->field to be optimized out

2012-10-29 Thread Richard Biener
On Mon, Oct 29, 2012 at 1:03 AM, Jan Hubicka wrote: > Hi, > this patch makes optimizer to predict &this->field to be optimized out. > The main motivation for this is to make destructors that only calls destructor > of inner type to be inlined, even in the cold regions. > > Bootstrapped/regtested x

Make inliner to predict &this->field to be optimized out

2012-10-28 Thread Jan Hubicka
Hi, this patch makes optimizer to predict &this->field to be optimized out. The main motivation for this is to make destructors that only calls destructor of inner type to be inlined, even in the cold regions. Bootstrapped/regtested x86_64-linux. Comitted. 2012-10-28 Jan Hubicka * ipa