RE: Optimization for static local variables

2017-06-14 Thread Prachi Godbole
> On Wed, Jun 14, 2017 at 1:14 PM, Prachi Godbole > wrote: > > I'm developing a solution to optimize away intermediate stores (loads) for > static local variables which are assigned to before referenced on every path > through a function. > > > > Currently GCC eliminates all loads/stores in a stra

Re: Optimization for static local variables

2017-06-14 Thread Richard Biener
On Wed, Jun 14, 2017 at 1:14 PM, Prachi Godbole wrote: > I'm developing a solution to optimize away intermediate stores (loads) for > static local variables which are assigned to before referenced on every path > through a function. > > Currently GCC eliminates all loads/stores in a straight lin

Re: Optimization for static local variables

2017-06-14 Thread Bin.Cheng
On Wed, Jun 14, 2017 at 12:14 PM, Prachi Godbole wrote: > I'm developing a solution to optimize away intermediate stores (loads) for > static local variables which are assigned to before referenced on every path > through a function. > > Currently GCC eliminates all loads/stores in a straight li