Re: Dead Store Elimination

2009-10-27 Thread Jakub Jelinek
On Thu, Oct 22, 2009 at 12:14:31PM -0500, Pranav Bhandarkar wrote: > > Are you talking about the tree dead-store elimination pass or > > the RTL one?  Basically *addr = value1; cannot be removed > > if addr does not point to local memory or if the pointed-to > > memory escapes through a call-site t

Re: Dead Store Elimination

2009-10-22 Thread Jeff Law
On 10/22/09 11:14, Pranav Bhandarkar wrote: Are you talking about the tree dead-store elimination pass or the RTL one? Basically *addr = value1; cannot be removed if addr does not point to local memory or if the pointed-to memory escapes through a call-site that is dominated by this store.

Re: Dead Store Elimination

2009-10-22 Thread Pranav Bhandarkar
> Are you talking about the tree dead-store elimination pass or > the RTL one?  Basically *addr = value1; cannot be removed > if addr does not point to local memory or if the pointed-to > memory escapes through a call-site that is dominated by this store. I am talking about the RTL dead-store elim

Re: Dead Store Elimination

2009-10-22 Thread Richard Guenther
On Thu, Oct 22, 2009 at 8:31 AM, Pranav Bhandarkar wrote: > Hi, > > A possible silly question about the dead store elimination pass. From > the documentation it is clear that the store S1 below is removed by > this pass (in dse.c) > > *(addr) = value1;          // S1 > . > . > *(addr) = va