This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dead code elimination of dead structure assignments in gcc
- From: law at redhat dot com
- To: Richard Henderson <rth at redhat dot com>
- Cc: Reva Cuthbertson <reva at cup dot hp dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 23 Jan 2002 13:23:08 -0700
- Subject: Re: Dead code elimination of dead structure assignments in gcc
- Reply-to: law at redhat dot com
In message <20020123110523.A7653@redhat.com>, Richard Henderson writes:
> On Wed, Jan 23, 2002 at 06:58:59AM -0700, law@redhat.com wrote:
> > >From a brief look at your example, I would expect flow to delete your
> > dead stores -- I don't know why it isn't working.
>
> Flow only does this for leaf basic blocks (ones ending in a return
> or a noreturn function call). We do not propagate stack slot life
> information into other blocks.
Ah. That would be a problem.
It seems to me that propagating through reverse extended basic blocks
would allow us to pick up more dead stores into the stack.
jeff