Hi,

On Thu, 26 May 2011, Martin Jambor wrote:

> I assume DSE does not remove the stores as that would defeat the purpose 
> of the patch.

Right.  (The volatileness currently prevents the removal).

> If after optimizations such as SRA, these special stores are the only 
> statements accessing the variable, will the variable still remain in the 
> function potentially causing an unnecessary stack frame setup?

No, they will be removed once the last real reference to the variable goes 
away (that's the code I added in remove_unused_locals).  No need for 
special casing this in SRA itself.


Ciao,
Michael.

Reply via email to